doublecmd/plugins
heredie ec78eaed7c FIX: zip plugin - prevent crash on TAR abort inside GZip archive
When TAbUserAbort propagates out of TAbTarArchive.SaveArchive (e.g.
from the abort check added to the save loop), it exits the IsGzippedTar
branch of TAbGzipArchive.SaveArchive without calling SwapToGzip. The
outer finally block then compares FStream (which equals FTarStream,
possibly nil) with NewStream (FGzStream) and incorrectly frees
NewStream. The destructor later calls SwapToGzip (restoring FStream to
the already-freed FGzStream) and then frees FStream a second time,
causing an access violation.

Fix: compare FGzStream instead of FStream in the finally condition.
FGzStream always holds the original gzip stream reference and is never
changed by SwapToTar/SwapToGzip, so the NewStream ownership check is
correct regardless of which swap state the archive is in.
2026-05-21 20:08:39 -06:00
..
dsx FIX: Everything - stop search 2025-06-25 21:16:52 +03:00
wcx FIX: zip plugin - prevent crash on TAR abort inside GZip archive 2026-05-21 20:08:39 -06:00
wdx UPD: Project files 2024-03-01 23:53:33 +03:00
wfx ADD: Korean language file (#2754) 2026-02-16 22:51:17 +03:00
wlx FIX: Explorer preview plugin compilation 2025-04-12 13:57:38 +03:00
build.bat UPD: Line-endings 2023-01-19 21:17:15 +03:00
build.sh ADD: SevenZip - install plugin under Linux (experimental) 2025-10-11 13:39:55 +03:00