about summary refs log tree commit diff
path: root/posix/bug-regex36.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2014-06-20 12:41:27 +0200
committerAndreas Schwab <schwab@linux-m68k.org>2014-06-20 14:03:40 +0200
commitaa6ec754f3b4b1df81d186480c534b6486a1e6ee (patch)
treef46a9bdaa0362bdee62d66054fb634f444227188 /posix/bug-regex36.c
parent7892406e3591be24e64c12dbf7aa8ef5352d0dbc (diff)
downloadglibc-aa6ec754f3b4b1df81d186480c534b6486a1e6ee.tar.gz
glibc-aa6ec754f3b4b1df81d186480c534b6486a1e6ee.tar.xz
glibc-aa6ec754f3b4b1df81d186480c534b6486a1e6ee.zip
Fix another memory leak in regexp compiler (BZ #17069)
Diffstat (limited to 'posix/bug-regex36.c')
-rw-r--r--posix/bug-regex36.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/posix/bug-regex36.c b/posix/bug-regex36.c
index 3dda026585..59e2b6d321 100644
--- a/posix/bug-regex36.c
+++ b/posix/bug-regex36.c
@@ -1,4 +1,4 @@
-/* Test regcomp not leaking memory on invalid repetition operator
+/* Test regcomp not leaking memory on parse errors
    Copyright (C) 2014 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
@@ -24,6 +24,6 @@ main (int argc, char **argv)
 {
   regex_t r;
   mtrace ();
-  regcomp (&r, "[a]\\{-2,}", 0);
+  regcomp (&r, "[a]\\|[a]\\{-2,}", 0);
   regfree (&r);
 }