[Pkg-privacy-commits] [libotr] 88/225: Permit, but check, a NULL pointer passed to otrl_proto_instance()
Ximin Luo
infinity0 at moszumanska.debian.org
Sat Aug 22 12:45:00 UTC 2015
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch master
in repository libotr.
commit be9e0f19f47eba92b2cbd058fc2a7da90cc7717e
Author: Ian Goldberg <iang at cs.uwaterloo.ca>
Date: Thu Jul 19 10:11:57 2012 -0400
Permit, but check, a NULL pointer passed to otrl_proto_instance()
Thanks to Paul Wouters <paul at cypherpunks.ca> for the report.
---
src/proto.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/proto.c b/src/proto.c
index 3c96e05..70c3aa6 100644
--- a/src/proto.c
+++ b/src/proto.c
@@ -436,7 +436,7 @@ gcry_error_t otrl_proto_instance(const char *otrmsg,
unsigned char *bufp_head = NULL;
size_t lenp;
- if (strncmp(otrtag, "?OTR:AAM", 8)) {
+ if (!otrtag || strncmp(otrtag, "?OTR:AAM", 8)) {
goto invval;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/libotr.git
More information about the Pkg-privacy-commits
mailing list