c
< 	memcpy (&this_set[row - 1].signature, ph, sizeof (uint64_t));
---
> 	if (row > 0 && row <= nused) {
> 		memcpy (&this_set[row - 1].signature, ph, sizeof (uint64_t));
> 	}
