lib/portableproplib/prop_data.c: CID 62728 (integer overflowed argument)

This commit is contained in:
Juan RP 2014-10-07 10:19:32 +02:00
parent d4374fb9af
commit 6a02cb6534

View File

@ -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.