diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-01-23 19:58:20 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-01-23 19:58:20 +0000 |
commit | 1beed52c46c2060533ddbbb5853ac301ee93ddca (patch) | |
tree | ec23af4266b4b4002d13b39d62146502f5b8dd34 /src/parse/properties.c | |
parent | 2777496dbcab558d9d4ae703b6a8f063e93ec1ae (diff) | |
download | libcss-1beed52c46c2060533ddbbb5853ac301ee93ddca.tar.gz libcss-1beed52c46c2060533ddbbb5853ac301ee93ddca.tar.bz2 |
Border widths must be positive
svn path=/trunk/libcss/; revision=6190
Diffstat (limited to 'src/parse/properties.c')
-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 d7b913d..b3c9c1c 100644 --- a/src/parse/properties.c +++ b/src/parse/properties.c @@ -6858,6 +6858,10 @@ css_error parse_border_side_width(css_language *c, unit & UNIT_TIME || unit & UNIT_FREQ) return CSS_INVALID; + /* Length must be positive */ + if (length < 0) + return CSS_INVALID; + value = BORDER_WIDTH_SET; } |