mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-20 00:47:28 +01:00
1 parent
7f70dda95c
commit
d54d330601
5 files changed
+45
No files matched your search
@@ -1481,6 +1481,12 @@ wuffs_base__parse_number_f64(wuffs_base__slice_u8 s, uint32_t options) {
|
||||
// As the pointer p walks the contents, it's faster to repeatedly check "is
|
||||
// *p a valid digit" than "is p within bounds and *p a valid digit".
|
||||
if (s.len >= 256) {
|
||||
if (s.len > WUFFS_BASE__PARSE_NUMBER_XXX__SLICE_LEN_MAX_INCL) {
|
||||
wuffs_base__result_f64 ret;
|
||||
ret.status.repr = wuffs_base__error__bad_argument_length_too_long;
|
||||
ret.value = 0;
|
||||
return ret;
|
||||
}
|
||||
goto fallback;
|
||||
}
|
||||
uint8_t z[256];
|
||||
|
||||
Reference in new issue
Block a user