]> git.ipfire.org Git - thirdparty/libarchive.git/commit
compress: Prevent call stack overflow 2649/head
authorTobias Stoeckmann <tobias@stoeckmann.org>
Thu, 29 May 2025 13:07:02 +0000 (15:07 +0200)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Thu, 29 May 2025 13:07:02 +0000 (15:07 +0200)
commit2ed2db55e86f623c283c5b91c68b880c90ff87bd
treeee7da443248e8d4c12b6c9f3a86741c1b82d69de
parent59b09796c3402489c3f47625b6401a28d24ad8a4
compress: Prevent call stack overflow

Explicitly use goto to turn a recursive call into an iterative one.
Most compilers do this on their own with default settings, but MSVC
with default settings would create a binary which actually performs
recursive calls.

Fixes call stack overflow in binaries compiled with low optimization.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
libarchive/archive_read_support_filter_compress.c