Thread View: gnu.utils.bug
1 messages
1 total messages
Started by trq
Mon, 31 Aug 1992 09:41
bug in sed 1.09
Author: trq
Date: Mon, 31 Aug 1992 09:41
Date: Mon, 31 Aug 1992 09:41
43 lines
1822 bytes
1822 bytes
The following script will cause sed to abort in re_compile_fastmap()
and dump core. It appears that the 'on_failure_keep_string_jump'
opcode is not handled by the switch in re_compile_fastmap().
This is GNU sed version 1.09 compiled with GCC version 2.2.2 on a
Sparcstation ELC running SunOS 4.1.1.
The sed command:
./sed -n \
-e '/^\.c\.o:.*;/{' \
-e 's/\$\*\.c//' \
-e 's/^[^;]*;[ ]*//p' \
-e q \
-e '}' \
-e '/^\.c\.o: *$/{' \
-e N \
-e 's/\$\*\.c//' \
-e 's/^.*\n[ ]*//p' \
-e q \
-e '}' < mf
and the file "mf" contains:
.c.o:
$(CCCMD) $*.c
The following is a suggested patch:
===================================================================
RCS file: RCS/regex.c,v
retrieving revision 1.1
diff -c -r1.1 regex.c
*** 1.1 1992/08/31 09:18:53
--- regex.c 1992/08/31 09:20:38
***************
*** 2436,2441 ****
--- 2436,2442 ----
case notwordbound:
case wordbeg:
case wordend:
+ case on_failure_keep_string_jump:
continue;
Tom Quinn Theoretical Physics, University of Oxford
Internet: trq@dionysos.thphys.ox.ac.uk
JANET: trq@uk.ac.ox.astro
Phone: 44-865-273956
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads