Skip Menu |

This queue is for tickets about the CSS-LESSp CPAN distribution.

Report information
The Basics
Id: 65643
Status: resolved
Priority: 0/
Queue: CSS-LESSp

People
Owner: DRINCHEV [...] cpan.org
Requestors: mschout [...] gkg.net
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: [PATCH] CSS::LESSp goes into an infinite loop when parsing an expression that evaluates to zero.
Date: Fri, 11 Feb 2011 10:00:28 -0600
To: bug-css-lessp [...] rt.cpan.org, drinchev [...] gmail.com
From: Michael Schout <mschout [...] gkg.net>
CSS::LESSp 0.83 will go into an infinite loop if it encounters an expression that evaluates to zero, such as (1px * 0). The problem is that the while() loop that processes this expression checks for a true value to terminate the loop instead of just if the result is defined or not. Attached patch includes test case that reproduces this problem, and fixes it. Please let me know if you have any questions. Regards, Michael Schout

Message body is not shown because sender requested not to inline it.