It also found an issue with the struct Font * cast in ptinit() in t10.c. I assume that's already known, going by the description of commit 7cf07f4c5d5af63f1987ad614d24b5c75dcf4b01. I most likely won't touch that one; it seems to require quite extensive knowledge of the internals of the font system to even make sense of that cast. I expect the cast may cause a crash on architectures that are strict about aligned access, though.
Found by
clang -fsanitize=undefined
.It also found an issue with the
struct Font *
cast inptinit()
int10.c
. I assume that's already known, going by the description of commit 7cf07f4c5d5af63f1987ad614d24b5c75dcf4b01. I most likely won't touch that one; it seems to require quite extensive knowledge of the internals of the font system to even make sense of that cast. I expect the cast may cause a crash on architectures that are strict about aligned access, though.