]> www.infradead.org Git - mtd-utils.git/commit
ubiupdatevol: Prevent null pointer dereference
authorBastian Germann <bastiangermann@fishpost.de>
Sun, 8 Sep 2019 19:59:22 +0000 (21:59 +0200)
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Tue, 10 Sep 2019 08:16:51 +0000 (10:16 +0200)
commit3fd38416e7a4817d18173cdebd5b4c5d62c06220
tree635322a1656fe8903e45711e95907b052a680c26
parent1178a63f830dab71c6074b7c98e4d57946982656
ubiupdatevol: Prevent null pointer dereference

libubi_close(libubi) is called in the error handler if libubi is null.
Prevent that by handling the error case similar to the other ubi
executables.

Signed-off-by: Bastian Germann <bastiangermann@fishpost.de>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
ubi-utils/ubiupdatevol.c