[Pkg-privacy-commits] [msva-perl] 243/356: avoid passing undefined data to decode_base64()
Ximin Luo
infinity0 at moszumanska.debian.org
Mon Aug 24 07:42:01 UTC 2015
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch debian
in repository msva-perl.
commit 1b0caa69197fb5c9652671d0dd6b88efc20378a1
Author: Daniel Kahn Gillmor <dkg at fifthhorseman.net>
Date: Mon Dec 20 00:37:26 2010 -0500
avoid passing undefined data to decode_base64()
---
Crypt/Monkeysphere/MSVA.pm | 3 +++
1 file changed, 3 insertions(+)
diff --git a/Crypt/Monkeysphere/MSVA.pm b/Crypt/Monkeysphere/MSVA.pm
index 1ade1ab..fc4f70c 100755
--- a/Crypt/Monkeysphere/MSVA.pm
+++ b/Crypt/Monkeysphere/MSVA.pm
@@ -183,6 +183,9 @@
sub parse_rfc4716body {
my $data = shift;
+
+ return undef
+ unless defined($data);
$data = decode_base64($data) or return undef;
msvalog('debug', "key properties: %s\n", unpack('H*', $data));
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/msva-perl.git
More information about the Pkg-privacy-commits
mailing list