treewide: fix unaligned access
Some less common HW (not x86, usually ARM) doesn't tolerate unaligned access to memory and it's breakage of C as well. It's easiest to check by meson's -Db_sanitize=undefined (on any HW). I pushed millions of real-life QNAME+QTYPE queries over UDP in default mode and the sanitizer seems clear now.
Showing
- lib/cache/impl.h 11 additions, 5 deletionslib/cache/impl.h
- lib/cache/nsec1.c 10 additions, 4 deletionslib/cache/nsec1.c
- lib/layer/iterate.c 3 additions, 1 deletionlib/layer/iterate.c
- lib/selection.c 2 additions, 2 deletionslib/selection.c
- utils/cache_gc/db.c 15 additions, 16 deletionsutils/cache_gc/db.c
- utils/cache_gc/db.h 3 additions, 3 deletionsutils/cache_gc/db.h
- utils/cache_gc/kr_cache_gc.c 3 additions, 3 deletionsutils/cache_gc/kr_cache_gc.c
Please register or sign in to comment