]> xenbits.xensource.com Git - unikraft/unikraft.git/commit
lib/posix-process: Fix integer overflow in sigset operations
authorMichalis Pappas <michalis@unikraft.io>
Tue, 9 Jan 2024 12:03:52 +0000 (13:03 +0100)
committerUnikraft Bot <monkey@unikraft.io>
Wed, 26 Mar 2025 08:05:34 +0000 (08:05 +0000)
commit943119408c3d760a82ab524dd52b0a4836c7266e
tree18eb2e98cddc47ff57e16e9ec93100d79c174eba
parent6ad4314abb2f128742fc72cde050f1e02cca9307
lib/posix-process: Fix integer overflow in sigset operations

Fix an integer overflow caused by missing `UL` suffix on
shifted values that would result into incorrect evaluation
when signal numbers >= SIGRTMIN are passed to paremeters.

Signed-off-by: Michalis Pappas <michalis@unikraft.io>
Reviewed-by: Ioan-Teodor Teugea <ioan_teodor.teugea@stud.acs.upb.ro>
Reviewed-by: Sergiu Moga <sergiu@unikraft.io>
Reviewed-by: Andrei Tatar <andrei@unikraft.io>
Approved-by: Andrei Tatar <andrei@unikraft.io>
GitHub-Closes: #1248
lib/posix-process/signal/sigset.h