forked from DPDK/dpdk
-
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.
trace: fix undefined behavior in register
Passing the tracepoint handler casted to a void (*)(void) means that, at runtime, the registering code will invoke each handler with no stack allocated. This is an undefined behavior with reading current stack, but doing nothing with the values. This can be seen with UBsan. Signed-off-by: David Marchand <[email protected]>
- Loading branch information
1 parent
27a7fb0
commit f077fc2
Showing
2 changed files
with
44 additions
and
10 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