GNU bug report logs - #58096
support malloc NULL return

Previous Next

Package: grep;

Reported by: Aleksandar Kostadinov <akostadinov <at> gmail.com>

Date: Mon, 26 Sep 2022 15:45:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Aleksandar Kostadinov <akostadinov <at> gmail.com>
To: 58096 <at> debbugs.gnu.org
Subject: bug#58096: support malloc NULL return
Date: Mon, 26 Sep 2022 12:19:19 +0300
[Message part 1 (text/plain, inline)]
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 support a NULL return value?

Thank you!

[1] https://github.com/memkind/memkind/issues/853#issuecomment-1241678167
[Message part 2 (text/html, inline)]

This bug report was last modified 2 years and 241 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.