diff options
-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 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; } |