Re: [PATCH 1/6] test-hashmap: use ALLOC_ARRAY rather than bare malloc

2018-02-14 Thread Code AI
Jeff, Thanks for the feedback! Most of our users find CodeAI's fixes useful, even if they are not exactly correct. However, we are constantly working on improving the quality of CodeAI's fixes. The more people who use it, the more we can improve it. We would love for you to try the system

[PATCH 1/6] test-hashmap: use ALLOC_ARRAY rather than bare malloc

2018-02-14 Thread Jeff King
These two array allocations have several minor flaws: - they use bare malloc, rather than our error-checking xmalloc - they do a bare multiplication to determine the total size (which in theory can overflow, though in this case the sizes are all constants) - they use