Skip to content

Hanging/Infinite loop bug in Stylesheet::_parse_css #3672

@ejungcl

Description

@ejungcl

See
https://github.com/dompdf/dompdf/blame/master/src/Css/Stylesheet.php#L1306

This appears to have changed around release 3.1.0 => 3.1.1.

If the character before "data:" is not one of the expected chars, the loop will continue forever.

I'm seeing this happen in a css string that contains elements like "data:.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions