* trustdb.c (sanitize_regexp): New. Protect against dangerous regexps
authorDavid Shaw <dshaw@jabberwocky.com>
Wed, 12 Dec 2007 16:38:23 +0000 (16:38 +0000)
committerDavid Shaw <dshaw@jabberwocky.com>
Wed, 12 Dec 2007 16:38:23 +0000 (16:38 +0000)
commit2e7eadbc1e7204a42839a551418c8f8044fcd0cc
tree63b4654d1feb6c0665af00434add4c77f1dd89bb
parenta45ad0eba16a3c9e02177a4c07fa8292ba3e683b
* trustdb.c (sanitize_regexp): New.  Protect against dangerous regexps
(malloc bombs) by force-commenting any characters aside from the ones
we explicitly want.  (check_regexp): Use it here before passing the
regexp to regcomp().
g10/ChangeLog
g10/trustdb.c