Ticket #4616 (new defect)

Opened 3 hours ago

[PATCH] (tar.c) fix double free

Reported by: and Owned by:
Priority: major Milestone: Future Releases
Component: mc-core Version: master
Keywords: Cc:
Blocked By: Blocking:
Branch state: no branch Votes for changeset:

Description

When tar data block unexpected end then header_copy get freed but goto ret: freed header_copy again.
Save header_copy pointer AFTER successful tar data block handling.

Found by Clang-19 Static Analyzer

Attachments

mc-4616-tar.c-fix-double-free.patch (1.8 KB) - added by and 3 hours ago.

Change History

Changed 3 hours ago by and

Note: See TracTickets for help on using tickets.