libyuv/unit_test
Frank Barchard f0cfc1f1c8 ubsan friendly unaligned tests
- ubsan complains on unaligned tests when an int16 or int32 is stored unaligned in C.
Although current Intel, ARM, Mips and PPC can do unaligned load/store, its not guaranteed
and could crash a CPU that doesnt support it.
- unaligned tests use offset of 2 or 4, which ubsan accepts.
- unittest fills in random buffer with 2 bytes at a time instead of a short.
- row common functions for int16 types use 2 shorts instead of 1 int.

Bug: libyuv:908, b/203243873
Change-Id: Idf13fa901647d7b0975f1947291caa781999a9bc
Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/3229782
Commit-Queue: Frank Barchard <fbarchard@chromium.org>
Reviewed-by: Mirko Bonadei <mbonadei@chromium.org>
2021-10-18 18:03:28 +00:00
..
testdata Add unittest TestLinuxMipsMsaMmi. 2020-04-16 19:51:27 +00:00
basictypes_test.cc Switch to C99 types 2018-01-23 19:16:05 +00:00
color_test.cc BIT_EXACT for unattenuate and attenuate. 2021-10-15 19:46:02 +00:00
compare_test.cc fix compare row test for avx2 which does 64 bytes per loop 2021-04-06 22:37:25 +00:00
convert_test.cc ubsan friendly unaligned tests 2021-10-18 18:03:28 +00:00
cpu_test.cc Update Android.bp to always enable NEON 2021-06-10 19:31:48 +00:00
cpu_thread_test.cc clamp C functions use compare 2020-07-16 22:03:34 +00:00
math_test.cc Disable tests via macro that refer to row.h 2019-08-20 18:44:36 +00:00
planar_test.cc ubsan friendly unaligned tests 2021-10-18 18:03:28 +00:00
rotate_argb_test.cc use width + 1 for odd width tests 2021-04-09 20:17:55 +00:00
rotate_test.cc use width + 1 for odd width tests 2021-04-09 20:17:55 +00:00
scale_argb_test.cc BIT_EXACT for unattenuate and attenuate. 2021-10-15 19:46:02 +00:00
scale_test.cc BIT_EXACT for unattenuate and attenuate. 2021-10-15 19:46:02 +00:00
scale_uv_test.cc BIT_EXACT for unattenuate and attenuate. 2021-10-15 19:46:02 +00:00
unit_test.cc Add 12 bit YUV to 10 bit RGB 2021-03-05 01:09:37 +00:00
unit_test.h ubsan friendly unaligned tests 2021-10-18 18:03:28 +00:00
video_common_test.cc Add support for AR64 format 2021-03-13 20:55:21 +00:00