|
From: | Andreas Jaeger |
Subject: | Re: bug in regex when compiled with -DMBS_SUPPORT |
Date: | Mon, 29 Oct 2001 10:30:04 +0100 |
User-agent: | Gnus/5.090004 (Oort Gnus v0.04) XEmacs/21.4 (Artificial Intelligence, i386-suse-linux) |
Daryl Habersetzer - ProdEng DRAM <address@hidden> writes: > I (believe) I have found a bug in regexec ONLY when it is compiled with > MBS_SUPPORT. > > When the string you are searching exceeds 931667 bytes, regexec will seg > fault. I've > attached two files to illustrate: > > make_test_file -> a short perl script to create a test file > bug.c -> a c program to illustrate the problem > > %gcc -o bug bug.c > %perl make_test_file 981668 > test_file > %bug test_file > > some specifics: > I am using: > glibc-2.2.2 > gcc-2.96 This works fine with glibc 2.2.4: $ ./bug test_file Read 981674 bytes from test_file into str_ptr. Compiled re. Found it. Andreas -- Andreas Jaeger SuSE Labs address@hidden private address@hidden http://www.suse.de/~aj
[Prev in Thread] | Current Thread | [Next in Thread] |