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
2017-03-30 10:49:41 +02:00
2014-06-24 14:37:26 +02:00
2009-12-21 16:19:09 +00:00
2016-06-24 10:22:55 +09:00
2011-12-02 19:28:02 +01:00
2012-05-24 10:55:11 +02:00
2007-11-19 16:03:50 +00:00
2009-09-03 11:29:25 +00:00
2014-06-20 20:24:52 +02:00
2015-09-08 15:31:51 +02:00
2007-11-19 16:03:50 +00:00
2007-11-19 16:03:50 +00:00
2007-11-19 16:03:50 +00:00
2013-10-11 09:18:01 +02:00
2014-06-03 08:05:54 +02:00
2013-04-23 18:06:46 +02:00
2007-07-04 19:49:40 +00:00
2007-11-19 16:03:50 +00:00
2015-02-18 12:14:22 +01:00
2015-04-30 17:02:42 +09:00
2015-08-12 10:23:40 +09:00
2013-05-07 21:17:04 +02:00
2016-08-09 12:35:37 +02:00
2014-08-06 17:09:15 +02:00
2016-07-09 10:38:25 +09:00
2007-12-04 15:00:14 +00:00
2015-02-18 14:20:21 +01:00
2007-07-04 19:49:40 +00:00
2013-01-03 20:21:20 +01:00
2009-12-21 16:19:09 +00:00
2015-01-26 14:55:24 +01:00
2016-07-06 11:55:56 +09:00
2015-06-17 08:38:48 +02:00
2015-09-29 13:45:20 +09:00
2015-02-12 18:58:36 +01:00
2009-04-03 10:34:22 +00:00
2007-07-04 19:49:40 +00:00
2015-02-18 12:14:22 +01:00
2015-09-08 15:31:51 +02:00
2016-06-28 16:06:06 +09:00
2014-06-24 13:52:02 +02:00
2007-11-19 16:03:50 +00:00
2015-02-12 20:34:44 +01:00
2014-11-14 09:36:19 +01:00
2000-07-31 08:04:16 +00:00
2016-06-28 16:06:06 +09:00
2013-08-06 10:04:12 +02:00
2009-09-03 20:51:55 +00:00
2016-06-28 16:06:06 +09:00
2014-08-26 10:16:44 +02:00
2014-06-03 08:55:31 +02:00
2008-10-03 20:00:46 +00:00
2014-06-24 10:08:39 +02:00
2011-06-13 14:35:30 +02:00
2007-07-04 19:49:40 +00:00
2014-11-14 09:36:19 +01:00
2007-07-04 19:49:40 +00:00
2009-06-05 14:11:03 +00:00
2000-07-31 08:04:16 +00:00
2009-06-24 14:03:09 +00:00
2008-12-12 12:01:20 +00:00
2008-12-12 08:54:50 +00:00
2015-06-02 17:41:30 +02:00
2010-02-12 15:15:34 +00:00
2009-06-05 14:11:03 +00:00
2016-08-04 17:15:23 +09:00
2015-09-01 07:43:54 +02:00
2009-05-26 09:29:02 +00:00
2009-08-06 20:12:00 +00:00
2008-12-11 17:44:52 +00:00
2008-10-20 13:53:23 +00:00
2016-06-15 08:56:12 +09:00
2013-10-11 09:25:58 +02:00
2007-11-19 16:03:50 +00:00
2017-12-04 19:34:43 +09:00
2012-01-19 23:03:56 -05:00
2008-10-20 13:53:23 +00:00