1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00
NIIBE Yutaka 9ba0e2c76c 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:34:43 +09:00
..
2015-02-26 09:38:58 +01:00
2009-12-21 16:19:09 +00:00
2009-09-03 11:29:25 +00:00
2007-07-04 19:49:40 +00:00
2015-08-12 10:23:40 +09:00
2015-02-18 14:20:21 +01:00
2007-07-04 19:49:40 +00:00
2009-12-21 16:19:09 +00:00
2016-07-06 11:55:56 +09:00
2007-07-04 19:49:40 +00:00
2016-06-28 16:06:06 +09:00
2016-06-28 16:06:06 +09:00
2009-09-03 20:51:55 +00:00
2016-06-28 16:06:06 +09:00
2007-07-04 19:49:40 +00:00
2007-07-04 19:49:40 +00:00
2009-06-05 14:11:03 +00:00
2008-12-12 12:01:20 +00:00
2008-12-12 08:54:50 +00:00
2009-06-05 14:11:03 +00:00
2015-09-01 07:43:54 +02:00
2009-05-26 09:29:02 +00:00
2017-12-04 19:34:43 +09:00