Home | Docs | Forums | Lists | Bugs | Planet | Store | GMN | Get Gentoo!
View Bug Activity | Format For Printing | XML | Clone This Bug
spim-7.2.1-multiple-exception.patch adds the ability to use a :-delimited path list of exception files. However, under default conditions, it uses strtok_r on a static string, and causes a segfault on my system. Reproducible: Always Steps to Reproduce: Install a version of spim that applies the patch (spim-7.2.1-r2 at this writing). Run it with the default exception file. It should segfault in initialize_world. Actual Results: segfault
I confirm this bug.
Created an attachment (id=76625) [edit] fixed multiple-exceptions patch this is a quick fix for the multiple-exceptions patch (makes it not segfault at startup). otherwise it's completely untested as i haven't used spim much yet.
Created an attachment (id=76669) [edit] non-broken revised patch err, my previous patch freed the buffer, thus invalidating the filenames. this patch here doesn't suck as much (seems like i too didn't really now what strtok() does...). spim and xspim compile cleanly and startup without segfault. i do not know how to test the functionality enabled by the multiple exceptions patch yet, so feedback would be welcome.
Fixed with -r3.