Bug 118819

Summary: lineakconfig is broken
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Stanislav Brabec <sbrabec>
Component: X11 ApplicationsAssignee: Stefan Behlert <behlert>
Status: RESOLVED FIXED QA Contact: Stefan Dirsch <sndirsch>
Severity: Normal    
Priority: P5 - None CC: meissner
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: All   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Stanislav Brabec 2005-09-26 15:17:06 UTC
At least on AMD64, first start of lineakconfig does not work.

brabec@hammer:~> lineakconfig
*** buffer overflow detected ***: lineakconfig terminated
Aborted

Note: this bug is not related to my last change - forcing of GTK2. But I was not
able to check whether my last change works because of this bug.
Comment 1 Marcus Meissner 2005-09-28 06:37:03 UTC
(gdb) r 
Starting program: /usr/bin/lineakconfig  
*** buffer overflow detected ***: /usr/bin/lineakconfig terminated 
 
Program received signal SIGABRT, Aborted. 
0x00002aaaab97143a in raise () from /lib64/tls/libc.so.6 
(gdb) bt 
#0  0x00002aaaab97143a in raise () from /lib64/tls/libc.so.6 
#1  0x00002aaaab972870 in abort () from /lib64/tls/libc.so.6 
#2  0x00002aaaab9a706e in __libc_message () from /lib64/tls/libc.so.6 
#3  0x00002aaaaba119ef in __chk_fail () from /lib64/tls/libc.so.6 
#4  0x00002aaaaba10fd9 in _IO_str_chk_overflow () from /lib64/tls/libc.so.6 
#5  0x00002aaaab9aa0c6 in _IO_default_xsputn_internal () 
from /lib64/tls/libc.so.6 
#6  0x00002aaaab986537 in vfprintf () from /lib64/tls/libc.so.6 
#7  0x00002aaaaba11089 in __vsprintf_chk () from /lib64/tls/libc.so.6 
#8  0x00002aaaaba10fc0 in __sprintf_chk () from /lib64/tls/libc.so.6 
#9  0x0000000000408bd5 in parsedeffile () at support.c:750 
#10 0x000000000040a557 in main (argc=1, argv=0x7fffffcfddb8) at 
lineakconfig.c:53 
 
 
code is: 
        dfile = malloc( (strlen(CONFDIR) + 1 + strlen("/etc/") +1) * 
sizeof(char)); 
        sprintf(dfile,"%s/%s", "/etc/", DEFFILE); 
 
probably CONFDIR should be DEFFILE in line 1, or the other way round 
Comment 2 Stefan Behlert 2005-12-05 15:49:13 UTC
I updated the whole lineak-bunch today to the new version. A fix for the problem above was added during this operation. After autobuild has crunched the package please update.
Even with this fix I had one segfault in lineakd itself, but it was not reproduceable.
Lineakd might be dropped for 10.2 and replaced by ial & co