Skip to content

RFC: limit libgumbo memory allocations for untrusted HTML5 content #2949

@flavorjones

Description

@flavorjones

Summary

libxml2 has long had default limits on document size in order to prevent untrusted documents from creating an OOM condition and potentially using that as a denial-of-service attack vector. These limits can be removed for trusted documents by setting the HUGE parse option.

libgumbo does not have limits like this, and this issue is being created to discuss the need and possible implementations.

Background

This topic was first raised in #2941 where @stevecheckoway and I discussed the shape of the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic/gumboGumbo HTML5 parsertopic/memorySegfaults, memory leaks, valgrind testing, etc.topic/rfc

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions