From realloc man page: "If the new size is larger than the old size, the added memory will not be initialized." https://github.com/ostroproject/groupcheck/blob/3a6c336c1bdcd77ea040cdbf86cf1624af657cea/groupcheck.c#L839 As the first call is to calloc, this might lead to false assumptions when accessing the memory. A possible solution is to memset the data buffer after realloc.
From realloc man page:
"If the new size is larger than the old size, the added memory will not be initialized."
groupcheck/groupcheck.c
Line 839 in 3a6c336
As the first call is to calloc, this might lead to false assumptions when accessing the memory.
A possible solution is to memset the data buffer after realloc.