Deprecated function calls (ssignal/gsignal)
Description
The `gsignal` and `ssignal` functions are obsolete and no longer recommended. Consider using the `raise` or `sigaction` functions instead for process signaling.
Examples
Insecure Code
c
gsignal(1);Secure Code
c
raise(1);Remediation
Replace `gsignal` and `ssignal` with `raise` or `sigaction` functions.
Rule Details
| Field | Value |
|---|---|
| ID | CODE-0603 |
| Category | Generic |
| Severity | LOW |
| CWE | CWE-676 |
| Confidence | HIGH |
| Impact | LOW |
| Likelihood | LOW |
| Exploitability | COMPLEX |
| Tags | deprecated functions, process signaling |
| OWASP | A9:2017-Using Components with Known Vulnerabilities, A06:2021-Vulnerable and Outdated Components |