|
From: | Paul Eggert |
Subject: | Re: gl_array_list.c:452:29: runtime error: applying zero offset to null pointer |
Date: | Mon, 1 Nov 2021 12:21:18 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.2 |
On 10/21/21 12:38, Paweł Krawczyk wrote:
gl_array_list.c:452:29: runtime error: applying zero offset to null pointer SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior gl_array_list.c:452:29 in
The Gnulib portability assumptions <https://www.gnu.org/software/gnulib/manual/html_node/Other-portability-assumptions.html> say it's OK to add 0 to a null pointer. If you have a real platform (i.e., not a pedantic testing framework) where this is an issue, please let us know. Otherwise you might look into some way to have clang not nag you about this non-problem.
[Prev in Thread] | Current Thread | [Next in Thread] |