aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorLoganaden Velvindron <logan@hackers.mu>2018-06-15 21:45:32 +0400
committerLoganaden Velvindron <logan@hackers.mu>2018-06-15 21:45:32 +0400
commit9e2e5626dabb7208dafedcc9904940b666be1c3b (patch)
tree70bb7f8f0ac460784c2f860b7af3d124f30214b1 /contrib
parentbe27048a1842b76de5b230383c1466b72dfd8cc5 (diff)
Fix CVE-2018-12356 by hardening the regex.
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/verify-commits/gpg.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/verify-commits/gpg.sh b/contrib/verify-commits/gpg.sh
index 8f3e4b8063..16d41d7269 100755
--- a/contrib/verify-commits/gpg.sh
+++ b/contrib/verify-commits/gpg.sh
@@ -57,7 +57,7 @@ if ! $VALID; then
exit 1
fi
if $VALID && $REVSIG; then
- printf '%s\n' "$INPUT" | gpg --trust-model always "$@" 2>/dev/null | grep "\[GNUPG:\] \(NEWSIG\|SIG_ID\|VALIDSIG\)"
+ printf '%s\n' "$INPUT" | gpg --trust-model always "$@" 2>/dev/null | grep "^\[GNUPG:\] \(NEWSIG\|SIG_ID\|VALIDSIG\)"
echo "$GOODREVSIG"
else
printf '%s\n' "$INPUT" | gpg --trust-model always "$@" 2>/dev/null