Commit 8ff3764
Fix function-type mismatch in dynamic_loading test
main.cpp loads and calls method_get_ids/overrider_get_ids through
policy_ids_fn = const void**(), but the exported functions returned
const void*. The pointer reinterpretation is harmless at the ABI level,
so the test passes everywhere except the clang UBSan job, where
-fsanitize=function traps the call through the mismatched function-pointer
type and aborts. Declare the exports to return const void** to match.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent f1adf10 commit 8ff3764
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
0 commit comments