Description of problem: This program segfaults: #include <regex.h> #include <stdlib.h> int main () { struct re_pattern_buffer *buf; buf = malloc (sizeof (struct re_pattern_buffer)); re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE); return !!re_compile_pattern ("\\(\\b\\)\\{0\\}", 11, buf); } Version-Release number of selected component (if applicable): glibc-2.3.3-74 How reproducible: 100%
Still segfaults after adding: memset (buf, 0, sizeof (*buf)); after the malloc line.
http://sources.redhat.com/ml/libc-alpha/2004-11/msg00075.html
Fixed in glibc-2.3.3-76
Fix added to glibc-2.3.2-95.31, for the time being available from ftp://people.redhat.com/jakub/glibc/2.3.2-95.31/
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2005-256.html