Package: zstd Version: 1.5.4+dfsg2-5 Severity: normal Tags: upstream Dear Maintainer,
Current stable zstd version segfaults when trying to use output file without permissions or with other problems. Expected output: # echo test | zstd -fo /sys/not_writable_file ; echo $? zstd: /sys/not_writable_file: Read-only file system 1 Actual output: # echo test | zstd -fo /sys/not_writable_file ; echo $? zstd: /sys/not_writable_file: Read-only file system Caught SIGSEGV signal, printing stack: /lib/x86_64-linux-gnu/libc.so.6(setvbuf+0x11) [0x72177a336fa1] zstd(+0xeb977) [0x5f2f83add977] zstd(+0xf14fe) [0x5f2f83ae34fe] zstd(+0xf579f) [0x5f2f83ae779f] zstd(+0x61b0) [0x5f2f839f81b0] /lib/x86_64-linux-gnu/libc.so.6(+0x2724a) [0x72177a2e624a] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x85) [0x72177a2e6305] zstd(+0x7f81) [0x5f2f839f9f81] Segmentation fault (core dumped) 139 Upstream issue was fixed at https://github.com/facebook/zstd/pull/3541 I have verified that this issue does not reproduce with newer Debian zstd versions (1.5.7 in trixie). I am still reporting it because the crash is present in the current bookworm. -- System Information: Debian Release: 12.14 APT prefers oldstable-updates APT policy: (500, 'oldstable-updates'), (500, 'oldstable-security'), (500, 'oldstable') Architecture: amd64 (x86_64) Kernel: Linux 6.8.0-124-generic (SMP w/24 CPU threads; PREEMPT) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: unable to detect Versions of packages zstd depends on: ii libc6 2.36-9+deb12u14 ii libgcc-s1 12.2.0-14+deb12u1 ii liblz4-1 1.9.4-1 ii liblzma5 5.4.1-1 ii libstdc++6 12.2.0-14+deb12u1 ii zlib1g 1:1.2.13.dfsg-1 zstd recommends no packages. zstd suggests no packages. -- no debconf information

