Skip to content

Infinite loop with empty CSS string #100

Closed
@yunosh

Description

@yunosh

Since upgrading to the latest 7.x version (from a pre-6.0-snapshot), there is some infinite loop in the code if you pass an empty string to the parser

$settings = Sabberworm\CSS\Settings::create();
$settings->withMultibyteSupport(false);
$parser = new Sabberworm\CSS\Parser('', $settings);
$parser->parse();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions