[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gawk segfaults on opening non-existent file
From: |
Rafael Garcia-Suarez |
Subject: |
gawk segfaults on opening non-existent file |
Date: |
Tue, 17 Jan 2006 23:09:50 +0100 |
Apologies if this was reported before, but I didn't find any archives.
It appears that gawk 3.1.5 segfaults if it tries to open a file that
does not exist. See the bug report at :
http://qa.mandriva.com/show_bug.cgi?id=20050
(but this is reproducible very simply).
I have written a patch to fix this : basically, avoid freeing a
pointer that will continue to be used afterwards.
Please find the patch in the CVS at :
http://cvs.mandriva.com/cgi-bin/cvsweb.cgi/~checkout~/SPECS/gawk/gawk-3.1.5-open.patch?rev=1.1&content-type=text/plain
- gawk segfaults on opening non-existent file,
Rafael Garcia-Suarez <=