Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 181079 - x11-misc/lineakconfig-0.4.1b-r2 segfaults on empty config.
Summary: x11-misc/lineakconfig-0.4.1b-r2 segfaults on empty config.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Desktop Misc. Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-06 13:59 UTC by Maarten Billemont
Modified: 2007-06-06 19:20 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maarten Billemont 2007-06-06 13:59:45 UTC
Backtrace:
----------

Starting program: /usr/bin/lineakconfig

Program received signal SIGSEGV, Segmentation fault.
dcfp_rm_first_spaces (ptr=0x1 <Address 0x1 out of bounds>) at dcfp.c:430
430     dcfp.c: No such file or directory.
        in dcfp.c
(gdb) bt
#0  dcfp_rm_first_spaces (ptr=0x1 <Address 0x1 out of bounds>) at dcfp.c:430
#1  0x0805779f in dcfp_parse_var (varptr=0x80eb1c0, line=0x80eb381 "  ") at dcfp.c:249
#2  0x08057c26 in dcfp_parse_section (sectptr=0x80eb170, fp=0x8074c60, line=0x3d3d3d3d <Address 0x3d3d3d3d out of bounds>, line_nr=0xafdfee78)
    at dcfp.c:356
#3  0x08057c90 in dcfp_parse_section (sectptr=0x80e1d30, fp=0x8074c60, line=0x73654400 <Address 0x73654400 out of bounds>, line_nr=0xafdfee78)
    at dcfp.c:344

Reproducible: Always

Steps to Reproduce:
Comment 1 Maarten Billemont 2007-06-06 14:02:10 UTC
Pointer not checked before incrementing.

--- src/dcfp.c~	2007-06-06 10:02:01.000000000 -0400
+++ src/dcfp.c	2007-06-06 10:02:19.000000000 -0400
@@ -245,7 +245,8 @@
   value = (char *)malloc(sizeof(char));
   *value = '\0';
   firstptr = strchr(line, '=');
-  firstptr++;
+  if(firstptr != NULL)
+      firstptr++;
   ptr = dcfp_rm_first_spaces(firstptr);
   if (ptr==NULL)
 	return value;
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2007-06-06 14:05:18 UTC
Maarten, Thanks for your patch but from upstream page:

"lineakconfig and klineakconfig-0.5.x are NOT compatible with lineakd > 0.4.x"

I'm going to remove this package from tree.
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2007-06-06 14:10:10 UTC
Unless you have objections? FYI, It is also using GTK+-1.2.
Comment 4 Maarten Billemont 2007-06-06 14:59:05 UTC
I cannot find klineakconfig in the portage.  Is it part of another package or should I install it manually?
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2007-06-06 15:53:14 UTC
(In reply to comment #4)
> I cannot find klineakconfig in the portage.  Is it part of another package or
> should I install it manually?
> 

It was allready removed sometime ago because it's not compatible with current lineakd. 

See upstream page.
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2007-06-06 19:20:31 UTC
# Samuli Suominen <drac@gentoo.org> (06 Jun 2006)
# Masked for removal in 30 days. Uncompatible with
# current lineakd as per upstream page. Bug 181079.
x11-misc/lineakconfig