]> granicus.if.org Git - pdns/commit
dnsdist: Fix misaligned load/store in ECS, reported by UBSAN
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 19 Jan 2016 08:28:11 +0000 (09:28 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 19 Jan 2016 08:28:11 +0000 (09:28 +0100)
commitdf3672332d7725e73d86acf0554d750f3ebdde3f
treeb6030a3f2499b27f4772cf66b00db8a7d92cf1db
parent2c4aedaba8102d63f0ccaf4bd00c6fee39fca184
dnsdist: Fix misaligned load/store in ECS, reported by UBSAN

Using the buffer position as an uint16_t requires 2 byte alignment,
which is not guaranteed here.
pdns/dnsdist-ecs.cc