From c9d7c45881521f18c9cef76a13603403487c2480 Mon Sep 17 00:00:00 2001 From: Anton Ovchinnikov Date: Wed, 4 Sep 2013 17:09:39 -0700 Subject: [PATCH] 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. --- ChangeLog | 7 +++++++ lib/regex-quote.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 91836211d..5ef6557e2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2013-09-04 Anton Ovchinnikov (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 glob: avoid -Wattribute warnings on glibc diff --git a/lib/regex-quote.c b/lib/regex-quote.c index 9a3f87d36..770b427ec 100644 --- a/lib/regex-quote.c +++ b/lib/regex-quote.c @@ -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) { -- 2.11.0