parson icon indicating copy to clipboard operation
parson copied to clipboard

is_decimal: Fix an integer underflow.

Open yamt opened this issue 4 years ago • 0 comments

It seems harmless though.

Found by UBSAN

parson.c:270:18: runtime error: unsigned integer overflow: 0 - 1 cannot be represented in type 'size_t' (aka 'unsigned long')

yamt avatar Sep 18 '20 00:09 yamt