tests: Avoid calling function with wrong type
Calling a function with the wrong type is immediate undefined behavior,
even if the ABI says it should be harmless. UBSAN picks it up
immediately, and any decent control-flow integrity mechanism will as
well.
Signed-off-by: Demi Marie Obenour <demi@invisiblethingslab.com>
parent
4273a5ed
Loading
Loading
Pipeline
#1320676
passed
with stages
in
2 minutes and 3 seconds
Loading
Please register or sign in to comment