Skip to content

Clang CFI icall type mismatch in rd_list_remove_cmp and string comparators #5558

Description

@EricFXU

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!

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions