Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infinite while-loop bug when minifying invalid CSS #58

Open
brandonkelly opened this issue Apr 14, 2020 · 0 comments
Open

Infinite while-loop bug when minifying invalid CSS #58

brandonkelly opened this issue Apr 14, 2020 · 0 comments

Comments

@brandonkelly
Copy link

If you run this:

$minifier = new \tubalmartin\CssMin\Minifier();
$minifier->run('#id {');

Then Minifier::processRuleBodies() will get itself into an infinite while-loop, because it does not consider that $blockEndPos may be false.

Expected behavior is that an exception should be thrown.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant