Description of problem: I just install "tunneler" and tried to start it - it crashes immediately with this message: *** buffer overflow detected ***: terminated Aborted (core dumped) Version-Release number of selected component: tunneler-1.1.1-32.fc38 Additional info: reporter: libreport-2.17.11 type: CCpp reason: tunneler killed by SIGABRT executable: /usr/bin/tunneler cmdline: tunneler cgroup: 0::/user.slice/user-25666.slice/session-2.scope rootdir: / uid: 25666 kernel: 6.5.9-200.fc38.x86_64 package: tunneler-1.1.1-32.fc38 runlevel: N 5 backtrace_rating: 4 crash_function: sprintf environ: Truncated backtrace: Thread no. 1 (2 frames) #9 sprintf at /usr/include/bits/stdio2.h:30 #10 Read_Config at /usr/src/debug/tunneler-1.1.1-32.fc38.x86_64/src/main.c:100
Created attachment 1997558 [details] File: proc_pid_status
Created attachment 1997559 [details] File: maps
Created attachment 1997560 [details] File: limits
Created attachment 1997561 [details] File: os_info
Created attachment 1997562 [details] File: cpuinfo
Created attachment 1997563 [details] File: core_backtrace
Created attachment 1997564 [details] File: dso_list
Created attachment 1997565 [details] File: backtrace
The problem persists in Fedora 39
The following patch fixes the issue - it's an off-by-one allocation error (the allocation did not take the final NUL byte into consideration): diff -u src/main.c.orig src/main.c --- src/main.c.orig 2024-01-06 12:27:35.858799575 +0100 +++ src/main.c 2024-01-06 12:27:39.702826782 +0100 @@ -96,7 +96,7 @@ return; } - conffile = malloc( strlen(home) + strlen(CONF_FILE) + 1 ); + conffile = malloc( strlen(home) + strlen(CONF_FILE) + 2 ); sprintf( conffile, "%s/%s", home, CONF_FILE ); #else char *end;
Hi Lubomir, are you still maintaining this package in Fedora? ... if not, it might be better to remove than to keep a non-working program around?
FEDORA-2024-0a6a3a0239 (tunneler-1.1.1-37.fc42) has been submitted as an update to Fedora 42. https://bodhi.fedoraproject.org/updates/FEDORA-2024-0a6a3a0239
FEDORA-2024-0a6a3a0239 (tunneler-1.1.1-37.fc42) has been pushed to the Fedora 42 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2024-0d1f5d1433 (tunneler-1.1.1-37.fc41) has been submitted as an update to Fedora 41. https://bodhi.fedoraproject.org/updates/FEDORA-2024-0d1f5d1433
FEDORA-2024-da61fba8d8 (tunneler-1.1.1-37.fc40) has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2024-da61fba8d8
FEDORA-2024-8f472da38c (tunneler-1.1.1-37.fc39) has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2024-8f472da38c
FEDORA-2024-8f472da38c has been pushed to the Fedora 39 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-8f472da38c` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-8f472da38c See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2024-da61fba8d8 has been pushed to the Fedora 40 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-da61fba8d8` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-da61fba8d8 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2024-0d1f5d1433 has been pushed to the Fedora 41 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-0d1f5d1433` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-0d1f5d1433 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2024-da61fba8d8 (tunneler-1.1.1-37.fc40) has been pushed to the Fedora 40 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2024-8f472da38c (tunneler-1.1.1-37.fc39) has been pushed to the Fedora 39 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2024-0d1f5d1433 (tunneler-1.1.1-37.fc41) has been pushed to the Fedora 41 stable repository. If problem still persists, please make note of it in this bug report.
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days