gpm 1.19.4 - SEGV in Gpm_Open()
Nico Schottelius
nicos@pcsystems.de
Sat, 08 Sep 2001 22:39:24 +0200
You are right!
This is fixed in the next gpm version.
I will release 1.19.5 in about one week.
check_devfs was a small hack. Doubled code
is really a bad thing.
Now I excluded it into another file.
Nico
Jakub Bogusz wrote
> [note: I am not subscriber of gpm list, so please Cc: to me when you answer]
>
> There is a bug in libgpm (1.19.4), which causes segmentation fault in
> programs that use libgpm (e.g. mc, links).
> Bug is in devfs support in Gpm_Open() function (liblow.c file).
> Local variable (devfs_id) is used without initializing.
>
> I attach a patch with fix for this bug.
>
> Note that check_devfs() function is in 3 files now (liblow.c, gpm.c,
> mouse-test.c) - maybe it should be included in library?
>
> --
> Jakub Bogusz http://prioris.mini.pw.edu.pl/~qboosh/
> PLD Team http://www.pld.org.pl/
>
> ------------------------------------------------------------------------
>
> gpm-checkdevfsbug.patchName: gpm-checkdevfsbug.patch
> Type: Plain Text (text/plain)