From de17837097a81636cefec79a946a1a161f6e8bed Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sat, 24 Jan 2009 14:35:10 +0000 Subject: Ensure pitch values are positive svn path=/trunk/libcss/; revision=6242 --- src/parse/properties.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/parse/properties.c b/src/parse/properties.c index 2a5cbef..3056a22 100644 --- a/src/parse/properties.c +++ b/src/parse/properties.c @@ -4565,6 +4565,10 @@ css_error parse_pitch(css_language *c, if ((unit & UNIT_FREQ) == false) return CSS_INVALID; + /* Negative values are invalid */ + if (length < 0) + return CSS_INVALID; + value = PITCH_FREQUENCY; } -- cgit v1.2.3