Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 151886 - x11-misc/lineakd-0.8.4 causes x11-misc/lineakconfig segfaults due to faulty .def file
Summary: x11-misc/lineakd-0.8.4 causes x11-misc/lineakconfig segfaults due to faulty ....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Desktop Misc. Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-18 16:13 UTC by Richard
Modified: 2006-10-20 02:02 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 Richard 2006-10-18 16:13:57 UTC
lineakdconfig segfaults on my box while refrencing key value pairs in lineakdconfig.c which is caused by a faulty /etc/lineakkb.def 

equery belongs /etc/lineakkb.def
[ Searching for file(s) /etc/lineakkb.def in *... ]
x11-misc/lineakd-0.8.4 (/etc/lineakkb.def)


!!Note /etc/lineakkb.def is the corrected one!!

xxx@xxx lineakd-0.8.4 $ diff -u -r -N  lineakd/lineakkb.def /etc/lineakkb.def
--- lineakd/lineakkb.def        2005-11-09 16:14:00.000000000 +0100
+++ /etc/lineakkb.def   2006-10-19 01:01:55.000000000 +0200
@@ -3531,8 +3531,7 @@
 [END LTCDLX300]

 [LTCDLX500] # Contributed by Alex Brick
- ## This stuff will initialize some keys that are not supported by
-default.
+ ## This stuff will initialize some keys that are not supported by default.
  ## "e01f 161" is the Eject Key
  ## "e075 219" is the Status Key
  ## "e055 144" is the My Documents Key
@@ -5386,7 +5385,7 @@
     VolumeDown  = 174
     VolumeUp    = 176
     Web|Home    = 178
-  END KEYS]
+  [END KEYS]
 [END MMNKP]

 [MNEK4K]

I didn't bother to check why the parser fails to throw an error in case it finds a faulty config, even if the config is bad the segfault shouldn't occur. It would be failry easy to add some check in dcfp_get_key_from_line, but this would be only a workaround.
Comment 1 Krzysztof Pawlik (RETIRED) gentoo-dev 2006-10-20 02:02:38 UTC
Fixed, thanks.