JavaScript is not currently enabled, but is required for full CodeSonar manual search and browse functionality.
If you are viewing this file in your hub's Web GUI, enable JavaScript in your browser: you will also need it for GUI functionality.
If you opened this file directly from disk, your browser may be directly suppressing JavaScript functionality: certain browsers perform this suppression on local files (but not files delivered by web servers) for security reasons.
| CodeSonar® 9.2p0 | CONFIDENTIAL | CodeSecure Inc |
A Signal Handler Entry Point warning is issued at every code location corresponding to a modeled signal handler entry point.
This class is provided for diagnostic purposes and does not (necessarily) correspond to vulnerabilities in the code. There are several cases in which it can be helpful to enable the Signal Handler Entry Point class.
| Class Name | Signal Handler Entry Point |
|---|---|
| Significance | diagnostic |
| Mnemonic | DIAG.SIGHAND.ENTRY |
| Categories | None |
| Availability | Available for C and C++. |
| Enabling | Checks for this warning class are
disabled by default. To enable them, add the following WARNING_FILTER
rule to the project configuration file.
WARNING_FILTER += allow class="Signal Handler Entry Point" This class is for analysis diagnostics, rather than for warning about issues in your code. As such, it is generally not enabled by CodeSonar presets. In particular, it is not enabled by the all_warningclasses preset. |
#include <signal.h>
void handle(int s){}
void reg(void (*f)(int)){
signal(SIGABRT, f); /* 'Signal Handler Entry Point' warning issued here */
}
void start(void){
reg(handle);
}
Signal Handler Entry Point warnings can be triggered by any function treated as a signal handler entry point function by CodeSonar:
For more information about how CodeSonar treats signal handlers, see Concurrency Models: Thread Entry Points.
The following configuration file parameters affect checks for this warning class.
To report problems with this documentation, please visit https://support.codesecure.com/.