]> sourceware.org Git - glibc.git/commitdiff
[BZ 697] cvs/fedora-glibc-20090108T0952
authorUlrich Drepper <drepper@redhat.com>
Thu, 8 Jan 2009 00:47:30 +0000 (00:47 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 8 Jan 2009 00:47:30 +0000 (00:47 +0000)
* posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
being NULL also if there are no backreferences.
* posix/rxspencer/tests: Add testcases.

ChangeLog
posix/regexec.c
posix/rxspencer/tests

index 8829b444bd5a1ff6ebe281e03f377d46b6f0d888..17e987b57e1a393588be530046364cb964daa995 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
+
+       [BZ 697]
+       * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
+       being NULL also if there are no backreferences.
+       * posix/rxspencer/tests: Add testcases.
+
 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
 
        [BZ 9697]
index 135efe7441fd8edcd57e00b7dbfac6740d76eb8d..7bf0c08a78cb2189a6c07b04ce7cc6bf27cc41dc 100644 (file)
@@ -1,5 +1,5 @@
 /* Extended regular expression matching and search library.
-   Copyright (C) 2002, 2003, 2004, 2005, 2007 Free Software Foundation, Inc.
+   Copyright (C) 2002, 2003, 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
 
@@ -1004,6 +1004,11 @@ prune_impossible_nodes (mctx)
       re_node_set_free (&sctx.limits);
       if (BE (ret != REG_NOERROR, 0))
        goto free_return;
+      if (sifted_states[0] == NULL)
+       {
+         ret = REG_NOMATCH;
+         goto free_return;
+       }
     }
   re_free (mctx->state_log);
   mctx->state_log = sifted_states;
index b84a270cdaa3b0db6c3d0e3f9adbe5e790c0a455..3ad46e2a61ec4f007a4539ac847b7ff2ae0adb16 100644 (file)
@@ -536,3 +536,7 @@ a.*\b       &       abT     ab
 \B     &       aSbTc
 \B     &       SaT     @SaT
 \B     &       aSTSb   @TSb
+
+o$($|.)        -       oN
+o$($|.)        -       op
+o$($|.)        -       o       o
This page took 0.057199 seconds and 5 git commands to generate.