On 3/11/22 11:57, Mateusz Piotrowski wrote:
Hi,
I grepped out tree and there are many other places, which could be
converted to using calloc. Is there anything to watch out for when
converting malloc and memset call pairs to calloc?
Hi,
If you have a tool for it combined with a review, should be pretty
straight forward.
I don't see any issues converting malloc, memset/bzero sequences, as
long as they zero the full memory area allocated.
Maybe in contributed code, you need to push changes upstream first.
--HPS