Open llvmbot opened 7 years ago
I have a program that dynamically links against a library. The program passes a function pointer to that library, to execute.
But the ubsan (Undefined Behavior Sanitizer) specified that the pointer is on an incorrect function type. And that occurs only
I use clang to compile my project.
The attached code is reduced to a simple test case. Check the comments to see where we can act to remove some warnings. But these fixes seem obvious.
The issue was previously posted to http://stackoverflow.com/questions/43220926/call-to-function-unknown-through-pointer-to-incorrect-function-type
Extended Description
I have a program that dynamically links against a library. The program passes a function pointer to that library, to execute.
But the ubsan (Undefined Behavior Sanitizer) specified that the pointer is on an incorrect function type. And that occurs only
I use clang to compile my project.
The attached code is reduced to a simple test case. Check the comments to see where we can act to remove some warnings. But these fixes seem obvious.