From 6a02cb6534e4eab1541d082a41bf4bcc07f7729d Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 7 Oct 2014 10:19:32 +0200 Subject: [PATCH] lib/portableproplib/prop_data.c: CID 62728 (integer overflowed argument) --- lib/portableproplib/prop_data.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/portableproplib/prop_data.c b/lib/portableproplib/prop_data.c index abb7b18d..4d0ae2ce 100644 --- a/lib/portableproplib/prop_data.c +++ b/lib/portableproplib/prop_data.c @@ -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.