This is flagging for code integrity reasons and needed for compliance for our team.
Under Clang Control Flow Integrity (-fsanitize=cfi-icall), function pointer signatures at indirect call sites must match the target function parameter types exactly.
Passing (void )strcmp or comparators without const parameters to rd_list_remove_cmp and rd_list_find causes runtime Clang CFI flagging due to type mismatches between int ()(void *, void ) and int ()(const void *, const void *).
There is a pull request to fix this in #5557. Thanks!
This is flagging for code integrity reasons and needed for compliance for our team.
Under Clang Control Flow Integrity (-fsanitize=cfi-icall), function pointer signatures at indirect call sites must match the target function parameter types exactly.
Passing (void )strcmp or comparators without const parameters to rd_list_remove_cmp and rd_list_find causes runtime Clang CFI flagging due to type mismatches between int ()(void *, void ) and int ()(const void *, const void *).
There is a pull request to fix this in #5557. Thanks!