Author: jmb
Date: Sat Jan 24 07:07:25 2009
New Revision: 6226

URL: http://source.netsurf-browser.org?rev=6226&view=rev
Log:
Ensure height values are positive

Modified:
    trunk/libcss/src/parse/properties.c

Modified: trunk/libcss/src/parse/properties.c
URL: 
http://source.netsurf-browser.org/trunk/libcss/src/parse/properties.c?rev=6226&r1=6225&r2=6226&view=diff
==============================================================================
--- trunk/libcss/src/parse/properties.c (original)
+++ trunk/libcss/src/parse/properties.c Sat Jan 24 07:07:25 2009
@@ -3249,6 +3249,10 @@
                if (unit & UNIT_ANGLE || unit & UNIT_TIME || unit & UNIT_FREQ)
                        return CSS_INVALID;
 
+               /* Negative height is illegal */
+               if (length < 0)
+                       return CSS_INVALID;
+
                value = HEIGHT_SET;
        }
 


_______________________________________________
netsurf-commits mailing list
[email protected]
http://vlists.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org

Reply via email to