From 08d4f97429c94958f7f9b8f3cc7c42e5bde3e3cd Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sat, 24 Jan 2009 00:01:33 +0000 Subject: Font size values must be positive svn path=/trunk/libcss/; revision=6211 --- src/parse/properties.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/parse/properties.c b/src/parse/properties.c index 275ad91..b646ecf 100644 --- a/src/parse/properties.c +++ b/src/parse/properties.c @@ -3029,6 +3029,10 @@ css_error parse_font_size(css_language *c, if (unit & UNIT_ANGLE || unit & UNIT_TIME || unit & UNIT_FREQ) return CSS_INVALID; + /* Negative values are not permitted */ + if (length < 0) + return CSS_INVALID; + value = FONT_SIZE_DIMENSION; } -- cgit v1.2.3