[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    bug#1223: [BusyBox] bug#1223: grep segfaults with multiple regexps and CLEAN_UP enabled
From:       Erik Andersen <andersen () codepoet ! org>
Date:       2001-11-19 3:46:30
[Download RAW message or body]

On Mon Nov 19, 2001 at 07:04:11PM +1100, Steve Merrifield wrote:
> Package: busybox
> Version: 0.61.pre
>  
> If I set CONFIG_FEATURE_CLEAN_UP, and use more than one -e parameter,
> grep
> segfaults. With only one -e parameter, it works fine.  I am using the
> latest
> CVS findutils/grep.c (20011119)
>  
> sjm ~/busybox > ./busybox grep -e strdup -e regcomp findutils/grep.c
> extern void xregcomp(regex_t *preg, const char *regex, int cflags); /*
> in busybox.h */
>                                         before_buf[curpos] =
> xstrdup(line);
>         xregcomp(&regexes[nregexes-1], restr, reflags);
> Segmentation fault (core dumped)
> sjm ~/busybox >

Could you do a 'cvs up' and try again?  I think I've got it
all fixed up for you,

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic