Package: sbnc
Version: 1.2-8
Severity: normal
Hi,
The sbncGetBaseName (should be named sbncGetBasePath but it's not
important) make some basic parsing on argv[0]. But if argv[0] looks like
"sbnc" without a leading '.' or '/', BasePath stay NULL and the prog
crash on the strlen.
>From now, I see 2 ways of solving this :
- Use /proc/self/exe, but it seems way too linux specific
- Do some PATH parsing (like todo comment say)
If this is not planed to be done, please just add something like:
else {
fprintf(stderr, "Please use absolute path for starting sbnc\n");
exit(EXIT_FAILURE);
}
Thanks.
Celelibi
-- System Information:
Debian Release: 5.0
APT prefers testing
APT policy: (990, 'testing'), (600, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.23.9 (PREEMPT)
Locale: LANG=fr_FR, LC_CTYPE=fr_FR (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash
Versions of packages sbnc depends on:
ii adduser 3.110 add and remove users and groups
ii debconf [debconf-2.0] 1.5.24 Debian configuration management sy
ii libc-ares2 1.5.2-4 library for asyncronous name resol
ii libc6 2.7-18 GNU C Library: Shared libraries
ii libgcc1 1:4.3.2-1.1 GCC support library
ii libltdl3 1.5.26-4 A system independent dlopen wrappe
ii libssl0.9.8 0.9.8g-15 SSL shared libraries
ii libstdc++6 4.3.2-1.1 The GNU Standard C++ Library v3
ii pwgen 2.06-1 Automatic Password generation
ii ucf 3.0011 Update Configuration File: preserv
Versions of packages sbnc recommends:
ii oidentd 2.0.8-1.2 replacement ident daemon
ii sbnc-mysql 1.2-8 an IRC proxy for multiple users (M
ii sbnc-tcl 1.2-8 an IRC proxy for multiple users (T
sbnc suggests no packages.
-- debconf information excluded
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]