Skip to content
Commit 2fb8eda5 authored by Ben Wagner's avatar Ben Wagner Committed by Werner Lemberg
Browse files

*/*: Remove many function pointer casts.

In C it is undefined behavior to call a function through a function pointer
of a different type.  This is now detected by the Control Flow Integrity
Sanitizer.  All known issues have already been fixed.  Prevent any
accidental re-introduction by removing function pointer casts when defining
services.  The services will call the service functions through the function
pointers on the service.  As a result the functions must have the same type
so there should be no need to cast.  Removing the casts allows compilers to
warn about assignment to an incompatible function pointer type.
parent b641b607
Pipeline #898182 passed with stage
in 5 minutes and 52 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment