Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.3:Ports
libplist
0031-bplist-Make-sure-to-bail-out-if-malloc-fai...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0031-bplist-Make-sure-to-bail-out-if-malloc-fails-in-pars.patch of Package libplist
From 07e92dd116ed08ec8fc12cae6e48d7f2146aec53 Mon Sep 17 00:00:00 2001 From: Nikias Bassen <nikias@gmx.li> Date: Tue, 7 Feb 2017 12:49:58 +0100 Subject: [PATCH 38/41] bplist: Make sure to bail out if malloc() fails in parse_unicode_node() Credit to OSS-Fuzz --- src/bplist.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bplist.c b/src/bplist.c index c1f6007..640a5c0 100644 --- a/src/bplist.c +++ b/src/bplist.c @@ -368,6 +368,10 @@ static plist_t parse_unicode_node(const char **bnode, uint64_t size) data->type = PLIST_STRING; unicodestr = (uint16_t*) malloc(sizeof(uint16_t) * size); + if (!unicodestr) { + plist_free_data(data); + return NULL; + } for (i = 0; i < size; i++) unicodestr[i] = be16toh(((uint16_t*)*bnode)[i]); -- 2.6.6
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor