[Swan] Can you help me in using the correct tool ?
Wes Hardaker
opensource at hardakers.net
Wed Jan 9 07:54:49 EET 2013
Wes Hardaker <opensource at hardakers.net> writes:
> Philippe Vouters <philippe.vouters at laposte.net> writes:
>
>> *Best fix that I shall git commit:*
>> <<EOF>> {
>> if(parser_y_eof()) {
>> yyterminate();
>> }
>> if (stacktop->file != NULL) {
>> fprintf(stderr,"ERROR: EOF at EOL condition found in %s\n",
>> stacktop->fileglob.gl_pathv[stacktop->fileglobcnt]);
>> yyterminate();
>> }
>> }
>
> That code does indeed fix the seg-fault-on-bad-config-file problem that
> originated my change. So thanks for fixing my fix!
Nope, I was wrong. That code doesn't fix the segfault problem. I
hadn't relinked and it picked up the original fix. With the above code,
it still segfaults on the following file:
http://www.hardakers.net/temp/foo.conf
which can be tested via:
addconn --config foo.conf --checkconfig
--
Wes Hardaker
My Pictures: http://capturedonearth.com/
My Thoughts: http://pontifications.hardakers.net/
More information about the Swan
mailing list