Closed autumnontape closed 7 months ago
dbfile_close_handle takes struct dbhandle*; CFI doesn't like it being called as a function taking void*. This can be worked around by passing -fsanitize-cfi-icall-generalize-pointers, but it seemed easy enough to just make the code compliant.
dbfile_close_handle
struct dbhandle*
void*
-fsanitize-cfi-icall-generalize-pointers
using a wrong function signature is undefined behavior, so this fix is a correct one
Thank you for you contribution, this has been quite interesting
dbfile_close_handle
takesstruct dbhandle*
; CFI doesn't like it being called as a function takingvoid*
. This can be worked around by passing-fsanitize-cfi-icall-generalize-pointers
, but it seemed easy enough to just make the code compliant.