Thread (7 messages) flat view 7 messages, 5 authors, 2026-01-11

Re: [Bug] hook: -Wanalyzer-deref-before-check warning in run_hooks_opt

From: Ben Knoble <hidden>
Date: 2026-01-09 16:02:52

Le 9 janv. 2026 à 06:31, Patrick Steinhardt [off-list ref] a écrit :
[snip]
And we'd reliably
segfault anyway if we dereference the pointer, even though we would not
get a clean error message. Not sure whether that really is worth the
hassle though.
I think you’re probably right in practice, but doesn’t the standard just say dereferencing a NULL pointer is undefined behavior? Just wondering for my own curiosity :)

Best,
Ben
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help