]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
treewide: fix unaligned access
authorVladimír Čunát <vladimir.cunat@nic.cz>
Tue, 6 Apr 2021 15:28:52 +0000 (17:28 +0200)
committerTomas Krizek <tomas.krizek@nic.cz>
Wed, 14 Apr 2021 14:04:16 +0000 (16:04 +0200)
commit44f67cf4b0c98c92d5dfd5cdcad72e10d0820c89
tree30992bb0b0f707b095d9e9b4882f968d3ce4d4c6
parent7f1a33f53635e5bd71bac8bd8186236608d5cce9
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.
lib/cache/impl.h
lib/cache/nsec1.c
lib/layer/iterate.c
lib/selection.c
utils/cache_gc/db.c
utils/cache_gc/db.h
utils/cache_gc/kr_cache_gc.c