summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/opkg/opkg.inc
diff options
context:
space:
mode:
authorPaul Barker <paul@paulbarker.me.uk>2014-08-14 16:46:51 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-08-15 18:21:50 +0100
commiteb7a847190146f75b793a730f7a4ece2e3d3e98e (patch)
treef282f10ae336750f1ff93776e8c4b2ec25bc424d /meta/recipes-devtools/opkg/opkg.inc
parentcb1ab746ddc4c53f6825f3a9598b21bc5bdb7ef5 (diff)
downloadpoky-eb7a847190146f75b793a730f7a4ece2e3d3e98e.tar.gz
opkg: Protect add-exclude.patch from malloc failure
In the code added by add-exclude.patch, the return values of malloc and realloc were not checked before being dereferenced. In opkg we can use xmalloc and xrealloc instead of malloc and realloc. These functions terminate the program instead of returning NULL if memory allocation fails. (From OE-Core rev: 64048d45d5c52d354396e357e765f0fd8b5e56fd) Signed-off-by: Paul Barker <paul@paulbarker.me.uk> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/opkg/opkg.inc')
0 files changed, 0 insertions, 0 deletions