]> www.infradead.org Git - mtd-utils.git/commit
jffs2dump: check return value of lseek
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Sat, 2 Sep 2023 14:11:44 +0000 (16:11 +0200)
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Sat, 2 Sep 2023 14:11:44 +0000 (16:11 +0200)
commit54cf00ba6e2cbea815d684415426ad28de9953fd
tree31495517ceae8e8344bd1730d0ca061427fdaa0d
parent219e741f40f4801bae263e0b581b64888d887b4a
jffs2dump: check return value of lseek

On error, lseek returns a negative value. We need to check for that
and abort, instead of passing -1 to malloc and later on to read_nocheck.

Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
jffsX-utils/jffs2dump.c