Author: jmb
Date: Sat Jan 24 07:35:04 2009
New Revision: 6233

URL: http://source.netsurf-browser.org?rev=6233&view=rev
Log:
Ensure padding 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=6233&r1=6232&r2=6233&view=diff
==============================================================================
--- trunk/libcss/src/parse/properties.c (original)
+++ trunk/libcss/src/parse/properties.c Sat Jan 24 07:35:04 2009
@@ -7079,6 +7079,10 @@
                if (unit & UNIT_ANGLE || unit & UNIT_TIME || unit & UNIT_FREQ)
                        return CSS_INVALID;
 
+               /* Negative lengths are invalid */
+               if (length < 0)
+                       return CSS_INVALID;
+
                value = PADDING_SET;
        }
 


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

Reply via email to