summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-01-24 14:32:36 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-01-24 14:32:36 +0000
commit2c19929cd411e6fa979a6fe44813592a4569a0c3 (patch)
tree4be425520384ab92877e3dbf60e8e43c7dbba4ff
parentb3cc602f513971966d3a289a118ae5f66cc3d66b (diff)
downloadlibcss-2c19929cd411e6fa979a6fe44813592a4569a0c3.tar.gz
libcss-2c19929cd411e6fa979a6fe44813592a4569a0c3.tar.bz2
Range check pitch-range
svn path=/trunk/libcss/; revision=6240
-rw-r--r--src/parse/properties.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/parse/properties.c b/src/parse/properties.c
index 00fce82..2a5cbef 100644
--- a/src/parse/properties.c
+++ b/src/parse/properties.c
@@ -4485,6 +4485,10 @@ css_error parse_pitch_range(css_language *c,
if (consumed != token->ilower->len)
return CSS_INVALID;
+ /* Must be between 0 and 100 */
+ if (num < 0 || num > F_100)
+ return CSS_INVALID;
+
value = PITCH_RANGE_SET;
} else
return CSS_INVALID;