From bea57251fbd93e716be7cf3fd8413cd57cb71413 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sat, 24 Jan 2009 14:36:14 +0000 Subject: Range check richness values svn path=/trunk/libcss/; revision=6243 --- src/parse/properties.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/parse/properties.c') diff --git a/src/parse/properties.c b/src/parse/properties.c index 3056a22..e85d66e 100644 --- a/src/parse/properties.c +++ b/src/parse/properties.c @@ -4916,6 +4916,10 @@ css_error parse_richness(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 = RICHNESS_SET; } else return CSS_INVALID; -- cgit v1.2.3