diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-09-24 03:04:46 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-09-24 03:04:46 +0200 |
commit | 94b507f2c1c7244493473a0a6673d726a6fe9cf5 (patch) | |
tree | 6e28faa65f918803809ff87f8b4caf758f8b14c4 /lib/sqfshelper/data_reader_dump.c | |
parent | c56c830ae96ed000c999fb93c23bbaad0303acf9 (diff) |
Fix trivial use-after-free bug
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfshelper/data_reader_dump.c')
-rw-r--r-- | lib/sqfshelper/data_reader_dump.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } } |