mirror of
git://git.gnupg.org/gnupg.git
synced 2024-06-03 22:48:03 +02:00
gpg: Fix the fix out-of-bounds access.
* g10/tofu.c (build_conflict_set): Revert to int* and fix calloc. -- The original code used an int array and thus better keep that and do not limit it to 128 entries. Fixes-commit:c3008bffac
Fixes-commit:3b5b94ceab
Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
d8c5e8ccfd
commit
a75790b740
|
@ -2227,10 +2227,10 @@ build_conflict_set (tofu_dbs_t dbs,
|
|||
int j;
|
||||
strlist_t *prevp;
|
||||
strlist_t iter_next;
|
||||
char *die;
|
||||
int *die;
|
||||
|
||||
log_assert (conflict_set_count > 0);
|
||||
die = xtrycalloc (1, conflict_set_count);
|
||||
die = xtrycalloc (conflict_set_count, sizeof *die);
|
||||
if (!die)
|
||||
{
|
||||
/*err = gpg_error_from_syserror ();*/
|
||||
|
|
Loading…
Reference in New Issue
Block a user