lib/portableproplib/prop_data.c: CID 62728 (integer overflowed argument)
This commit is contained in:
parent
d4374fb9af
commit
6a02cb6534
@ -565,6 +565,8 @@ _prop_data_internalize(prop_stack_t stack, prop_object_t *obj,
|
||||
NULL) == false)
|
||||
return (true);
|
||||
|
||||
if (len + 1 >= SIZE_MAX)
|
||||
return true;
|
||||
/*
|
||||
* Always allocate one extra in case we don't land on an even byte
|
||||
* boundary during the decode.
|
||||
|
Loading…
Reference in New Issue
Block a user