From 94b507f2c1c7244493473a0a6673d726a6fe9cf5 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Tue, 24 Sep 2019 03:04:46 +0200 Subject: Fix trivial use-after-free bug Signed-off-by: David Oberhollenzer --- lib/sqfshelper/data_reader_dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/sqfshelper/data_reader_dump.c b/lib/sqfshelper/data_reader_dump.c index a9b6bb9..a6c7aa2 100644 --- a/lib/sqfshelper/data_reader_dump.c +++ b/lib/sqfshelper/data_reader_dump.c @@ -57,8 +57,8 @@ int sqfs_data_reader_dump(sqfs_data_reader_t *data, return -1; } - free(blk); filesz -= blk->size; + free(blk); } } -- cgit v1.2.3