]> Savannah Git Hosting - gnulib.git/commitdiff
regex-quote: fix buffer access out of bounds
authorAnton Ovchinnikov <revolver112@gmail.com>
Thu, 5 Sep 2013 00:09:39 +0000 (17:09 -0700)
committerPaul Eggert <eggert@Penguin.CS.UCLA.EDU>
Thu, 5 Sep 2013 00:10:17 +0000 (17:10 -0700)
http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00001.html
* lib/regex-quote.c (regex_quote_spec_pcre):
Fix typo that resulted in an out-of-bounds read.

ChangeLog
lib/regex-quote.c

index 91836211d87d9496ebc97c49cb9bc4bcb0613286..5ef6557e23b2ac36ce79d553ccf16949809dca81 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
+
+       regex-quote: fix buffer access out of bounds
+       http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00001.html
+       * lib/regex-quote.c (regex_quote_spec_pcre):
+       Fix typo that resulted in an out-of-bounds read.
+
 2013-09-04  Eric Blake  <eblake@redhat.com>
 
        glob: avoid -Wattribute warnings on glibc
index 9a3f87d364140bc52963d9d0a570045416fb4e0c..770b427ecffc496f4eb23f6967cfa46d373e95d8 100644 (file)
@@ -104,7 +104,7 @@ regex_quote_spec_pcre (int options, bool anchored)
   char *p;
 
   p = result.special;
-  memcpy (p, bre_special, sizeof (pcre_special) - 1);
+  memcpy (p, pcre_special, sizeof (pcre_special) - 1);
   p += sizeof (pcre_special) - 1;
   if (options & PCRE_EXTENDED)
     {