bug#1223: [BusyBox] bug#1223: grep segfaults with multiple regexps and CLEAN_UP enabled

Neal H Walfield neal at cs.uml.edu
Mon Nov 19 03:45:07 UTC 2001


>         while (--nregexes >= 0) {
>                 regfree(&regexes[nregexes]);
>                 free(&regexes[nregexes]);
>         }

Freeing the address of a variable is suspect.  In fact, I have trouble
imagining how you could ever create an array like this.  Should this
not be: `free (regexes[nregexes])'?






More information about the busybox mailing list