bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gawk 3.1.3 crash in POSIX RE


From: Patrick TJ McPhee
Subject: gawk 3.1.3 crash in POSIX RE
Date: Thu, 11 Sep 2003 13:42:18 -0400 (EDT)

The attached awk script acronyms.awk crashes during parsing with gawk
3.1.3. It works with gawk 3.0.6. regexpatch contains a context diff for
a fix. In words: it crashes when RE_TRANSLATE_TYPE is defined as char *,
but not if it's defined as unsigned char *.

The actual crash is in the macro BUILD_CHARCLASS_LOOP in regcomp.c, in
circumstances where trans is non-NULL.

The patched executable passes `make check'. I tried this on FreeBSD
4.6.0 with gcc 2.95.3.

Have a good day.

-- 

Patrick TJ McPhee
East York  Canada
address@hidden

Attachment: acronyms.awk
Description: application/awk

Attachment: regexpatch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]