Skip to content

Commit

Permalink
Fix CVE-2018-12356 by hardening the regex.
Browse files Browse the repository at this point in the history
  • Loading branch information
Muzaffar Auhammud committed Jun 18, 2018
1 parent ea230e7 commit 6ceb0bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/verify-commits/gpg.sh
Expand Up @@ -26,7 +26,7 @@ if ! $VALID; then
exit 1
fi
if $VALID && $REVSIG; then
echo "$INPUT" | gpg --trust-model always "$@" | grep "\[GNUPG:\] \(NEWSIG\|SIG_ID\|VALIDSIG\)" 2>/dev/null
echo "$INPUT" | gpg --trust-model always "$@" | grep "^\[GNUPG:\] \(NEWSIG\|SIG_ID\|VALIDSIG\)" 2>/dev/null
echo "$GOODREVSIG"
else
echo "$INPUT" | gpg --trust-model always "$@" 2>/dev/null
Expand Down

0 comments on commit 6ceb0bb

Please sign in to comment.