Package: symlinks Version: symlinks Severity: normal Tags: upstream
Dear Maintainer, Expected behavior: symlinks handles paths such as /.. Actual behavior: symlinks crashes with SIGSEGV. Steps to reproduce: ln -s /.. mylink symlinks . Segmentation fault (core dumped)Discussion: The parent directory of the root directory is just the root directory. However, symlinks does not handle this case properly, leading to a segmentation fault.
A minimal script to reproduce the crash is attached. -- System Information: Debian Release: 10.3 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 4.19.0-8-amd64 (SMP w/4 CPU cores)Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages symlinks depends on: ii libc6 2.28-10 symlinks recommends no packages. symlinks suggests no packages.
reproduce.sh
Description: application/shellscript