[Bug analyzer/115735] Analyzer misses trivial syslog() call in signal handler for -Wanalyzer-unsafe-call-within-signal-handler
dmalcolm at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jul 3 20:13:54 GMT 2024
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115735
--- Comment #11 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
FWIW I just noticed that your reproducer is wrong (I think) whilst trying to
implement sigaction: if you're going to use sa_sigaction for the function
pointer (rather than sa_handler), you have to set the SA_SIGINFO bit within
sa_flags; see:
https://www.man7.org/linux/man-pages/man2/sigaction.2.html
https://linux.die.net/man/2/sigaction
More information about the Gcc-bugs
mailing list