]> granicus.if.org Git - libvpx/commit
sanitizer: fix unaligned load/stores
authorMatthias Räncker <theonetruecamper@gmx.de>
Thu, 20 Sep 2018 18:20:39 +0000 (20:20 +0200)
committerMatthias Räncker <theonetruecamper@gmx.de>
Thu, 20 Sep 2018 20:37:42 +0000 (22:37 +0200)
commita93705f7f9c15cdc2a1e62f6142e99f794923826
tree8cd6bfae1ce7c998e8c733727bb1701d2fc95b7e
parent0aa83d61a18fbdd5921247e0401b0fbba443cf35
sanitizer: fix unaligned load/stores

When built with -fsanitizer=address,undefined a number of tests,
such as ByteAlignmentTest.SwitchByteAlignment or
ByteAlignmentTest.SwitchByteAlignment produce runtime errors about
unaligned 4-byte loads/stores. While normally not really a problem,
this does technically violate the language and it is eays to fix in
a standard conforming way using memcpy which does not produce
inferior code.

Signed-off-by: Matthias Räncker <theonetruecamper@gmx.de>
Change-Id: Ie1e97ab25fe874f864df48b473569f00563181ae
vpx_dsp/x86/loopfilter_sse2.c
vpx_dsp/x86/mem_sse2.h
vpx_dsp/x86/variance_sse2.c