Back to index

glibc  2.9
Functions
bug-regex21.c File Reference
#include <mcheck.h>
#include <regex.h>
#include <stdio.h>

Go to the source code of this file.

Functions

int main (void)

Function Documentation

int main ( void  )

Definition at line 25 of file bug-regex21.c.

{
  regex_t re;
  int i;
  int ret = 0;

  mtrace ();

  for (i = 0; i < 32; ++i)
    {
      if (regcomp (&re, "X-.+:.+Y=\".*\\.(A|B|C|D|E|F|G|H|I",
                 REG_EXTENDED | REG_ICASE) == 0)
       {
         puts ("regcomp unexpectedly succeeded");
         ret = 1;
       }
      else
       regfree (&re);
    }
  return ret;
}

Here is the call graph for this function: