[Pkg-gnupg-commit] [gnupg2] 69/180: g10: Fix out-of-bounds access.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Sat Dec 24 22:29:09 UTC 2016
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch master
in repository gnupg2.
commit 3b5b94ceab7c0ed9501c5cf54b4efa17fcd7300a
Author: Justus Winter <justus at g10code.com>
Date: Thu Dec 8 14:17:50 2016 +0100
g10: Fix out-of-bounds access.
* g10/tofu.c (build_conflict_set): Use 'char'.
Fixes-commit: c3008bffac68b6f31e9ae9bad837cdce5de7c0db
Signed-off-by: Justus Winter <justus at g10code.com>
---
g10/tofu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/g10/tofu.c b/g10/tofu.c
index d095bce..abf1ab4 100644
--- a/g10/tofu.c
+++ b/g10/tofu.c
@@ -2227,7 +2227,7 @@ build_conflict_set (tofu_dbs_t dbs,
int j;
strlist_t *prevp;
strlist_t iter_next;
- int *die;
+ char *die;
log_assert (conflict_set_count > 0);
die = xtrycalloc (1, conflict_set_count);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git
More information about the Pkg-gnupg-commit
mailing list