bug#58096: support malloc NULL return

2022-09-26 Thread Paul Eggert
On 9/26/22 02:19, Aleksandar Kostadinov wrote: Can grep be updated to also support a NULL return value? No need for an update, as grep has done that for many years. This is a configuration problem on the part of the memkind user. See: https://github.com/memkind/memkind/issues/853#issuecomment

bug#58096: support malloc NULL return

2022-09-26 Thread Aleksandar Kostadinov
Hello, grep fails when using a certain malloc implementation (memkind) because of its reliance on malloc returning 0 when zero size is passed to it. Memkind returns NULL instead which according to authors [1] is one of the acceptable values in malloc specification. Can grep be updated to also sup