wrong size for allocation
[tor/src/or/dirvote.c:networkstatus_compute_consensus: ~644]
int *named_flag; /* Index of the flag "Named" for votes[j] */
int *unnamed_flag; /* Index of the flag "Unnamed" for votes[j] */
[...]
named_flag = tor_malloc_zero(sizeof(int*) * smartlist_len(votes));
!^
|
[ This looks wrong, probably we should be using 'sizeof(int)' in the allocation. Probably only affects 64-bit systems. ]
[ Same problem on the next line too: ]
unnamed_flag = tor_malloc_zero(sizeof(int*) * smartlist_len(votes));
[Automatically added by flyspray2trac: Operating System: All]
Trac:
Username: aakova