Skip to content

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

FieldValue
IDCODE-0603
CategoryGeneric
SeverityLOW
CWECWE-676
ConfidenceHIGH
ImpactLOW
LikelihoodLOW
ExploitabilityCOMPLEX
Tagsdeprecated functions, process signaling
OWASPA9:2017-Using Components with Known Vulnerabilities, A06:2021-Vulnerable and Outdated Components