-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update command handler process() callback return value type
The partial move from returning int to returning enum sigma_cmd_result was problematic for LLVM/Clang Control Flow Integrity (CFI) sanitizer. With CFI, the function pointers are verified to have the same type as the actual callback function and enum is not considered to match int in that context. This results in sigma_dut terminating if CFI is enabled for the build. Avoid this by updating the process() callback functions to use the exact same type as the function pointer. This was done with following semantic patch and manual cleanup to remove functions that matched but were not used as registered callbacks (those functions can be addressed separately as cleanup since they do not cause issues with CFI) and with coding style cleanup for indentation. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
- Loading branch information
Jouni Malinen
committed
Jun 12, 2019
1 parent
c1735d5
commit f722271
Showing
5 changed files
with
343 additions
and
268 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.