forked from wireshark/wireshark
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wiretap: don't use void parameter type in wtap_new_ipv6_callback_t
The wtap_new_ipv6_callback_t was initially introduced to allow add_new_ipv6 to be called from the wiretap library. It's first parameter is a 128-bit IPv6 address, so let's use that instead of a void pointer. This fixes an UBSan error that could cause a crash when CFI is enabled: wiretap/wtap.c:1623:4: runtime error: call to function add_ipv6_name through pointer to incorrect function type 'void (*)(const void *, const char *, bool)' Link: https://maskray.me/blog/2022-12-18-control-flow-integrity#fsanitizefunction
- Loading branch information
1 parent
43df2a3
commit 3264bbd
Showing
3 changed files
with
3 additions
and
3 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
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