If a call to the signal()
function occurs other than as the result of calling the abort()
or raise()
function, and the XXX results in a SIG_ERR
return, the value of errno
is indeterminate.
The value of errno
is referred to after a signal occurred other than as the result of calling the abort()
or raise() function and the corresponding signal handler obtained a {{SIG_ERR
}} return from a call to the signal()
function.
Risk Assessment
Rule |
Severity |
Likelihood |
Remediation Cost |
Priority |
Level |
---|---|---|---|---|---|
ERR32-C |
1 (low) |
1 (unlikely) |
3 (low) |
P3 |
L3 |
Search for vulnerabilities resulting from the violation of this rule on the CERT website.
References
[[ISO/IEC 9899-1999]] Section 7.14.1.1, "The signal function"
ERR31-C. Don't redefine errno 13. Error Handling (ERR) ERR33-C. Only examine the value of errno when it is indicated to be valid by a function's return value