1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-01-02 12:01:32 +01:00
NIIBE Yutaka 9441946e18 g10: Fix regexp sanitization.
* g10/trustdb.c (sanitize_regexp): Only escape operators.

--

Backport from master commit:
	ccf3ba92087e79abdeaa0208795829b431c6f201

To sanitize a regular expression, quoting by backslash should be only
done for defined characters.  POSIX defines 12 characters including
dot and backslash.

Quoting other characters is wrong, in two ways; It may build an
operator like: \b, \s, \w when using GNU library.  Case ignored match
doesn't work, because quoting lower letter means literally and no
much to upper letter.

GnuPG-bug-id: 2923
Co-authored-by: Damien Goutte-Gattat <dgouttegattat@incenp.org>
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
2017-12-04 19:33:45 +09:00
..
2010-09-23 08:15:45 +00:00
2007-10-23 10:48:09 +00:00
2007-10-23 10:48:09 +00:00
2007-10-23 10:48:09 +00:00
2007-10-23 10:48:09 +00:00
2007-10-23 10:48:09 +00:00
2014-08-06 18:33:21 +02:00
2015-02-23 10:53:05 +01:00
2009-12-15 11:07:43 +00:00
2009-09-02 17:30:53 +00:00
2007-10-23 10:48:09 +00:00
2013-07-12 17:26:55 +09:00
2007-10-23 10:48:09 +00:00
2017-05-10 14:09:54 +09:00
2007-10-23 10:48:09 +00:00
2007-10-23 10:48:09 +00:00
2016-06-28 16:10:14 +09:00
2016-06-28 16:10:14 +09:00
2007-10-23 10:48:09 +00:00
2016-06-28 16:10:14 +09:00
2009-06-24 14:01:20 +00:00
2015-09-01 07:47:14 +02:00
2013-07-12 17:26:55 +09:00
2009-05-11 09:37:25 +00:00
2007-10-23 10:48:09 +00:00
2017-07-07 21:53:12 +09:00
2007-10-23 10:48:09 +00:00
2007-10-23 10:48:09 +00:00
2017-12-04 19:33:45 +09:00
2007-10-23 10:48:09 +00:00