diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-01-24 14:32:36 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-01-24 14:32:36 +0000 |
commit | 2c19929cd411e6fa979a6fe44813592a4569a0c3 (patch) | |
tree | 4be425520384ab92877e3dbf60e8e43c7dbba4ff /src | |
parent | b3cc602f513971966d3a289a118ae5f66cc3d66b (diff) | |
download | libcss-2c19929cd411e6fa979a6fe44813592a4569a0c3.tar.gz |
Range check pitch-range
svn path=/trunk/libcss/; revision=6240
Diffstat (limited to 'src')
-rw-r--r-- | src/parse/properties.c | 4 |
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; |