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)
|
NULL) == false)
|
||||||
return (true);
|
return (true);
|
||||||
|
|
||||||
|
if (len + 1 >= SIZE_MAX)
|
||||||
|
return true;
|
||||||
/*
|
/*
|
||||||
* Always allocate one extra in case we don't land on an even byte
|
* Always allocate one extra in case we don't land on an even byte
|
||||||
* boundary during the decode.
|
* boundary during the decode.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user