Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ticket #4616: (tar_read_header): fix double free.
When tar data block unexpected end then header_copy get freed but "goto ret:" freed header_copy again. Do not free header_copy at exit from the loop of reading tar blocks. Found by Clang-19 Static Analyzer. The bug was introduced in 8223f82. Reported-by: Andreas Mohr <[email protected]> Signed-off-by: Andrew Borodin <[email protected]>
- Loading branch information