Skip to content

fix strict aliasing problems

Vladimír Čunát requested to merge strict-aliasing into master

The (main) issue here is that char * is not allowed to alias with anyType *. With gcc-10 in Fedora this now started to cause real problems and loading stats module segfaulted.

Actually I can't see in standard (C11 6.5 par.7) that using void * is guaranteed to be correct, but at least it seems fine with gcc, and e.g. some standard functions like posix_memalign() use it in the same "dangerous" way.

EDIT: further commit deals with aliasing risks due to libuv.

Edited by Vladimír Čunát

Merge request reports