libubi: fix several issues discovered by Coverity
authorDaniel Golle <daniel@makrotopia.org>
Sat, 14 Aug 2021 17:09:43 +0000 (18:09 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Sat, 14 Aug 2021 17:53:11 +0000 (18:53 +0100)
commit68ae639148ca503681c1a69e977d0c952a4d2a40
tree4693cdc675fea1f68780baeecb43d21b7e2188e4
parent629726dfea57d03219c00b9e8972ef3d1d550446
libubi: fix several issues discovered by Coverity

Coverity CID: 1329896 Out-of-bounds access
Coverity CID: 1330127 Resource leak
Coverity CID: 1330173 Resource leak
Coverity CID: 1330472 Wrong size argument

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
libubi/libubi.c