webrtc_m130/tools_webrtc/ubsan/suppressions.txt
Byoungchan Lee 1b80be352b Fix unaligned memory access detected by UBSAN
Recently, Chromium added -fsanitize=alignment for `is_ubsan=true`,
and due to this, unaligned memory access was found in several places,
and chromium roll is currently blocked.
Modify unaligned memory access in rtc_base/byte_order.h to use memcpy.
Since libaom and libsrtp perform unaligned memory accesses, add them
to the suppression list.
Also, remove any mention of yasm from the UBSAN suppression list,
as yasm is no longer used.

Bug: chromium:1057551
Change-Id: I4961b66831750f4fa7b6de0b80b2052fe6ef27c5
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/286200
Commit-Queue: Daniel.L (Byoungchan) Lee <daniel.l@hpcnt.com>
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#38806}
2022-12-05 09:56:00 +00:00

27 lines
1.0 KiB
Plaintext

#############################################################################
# UBSan ignorelist.
#
# This is a WebRTC-specific replacement of Chromium's ignorelist.txt.
# Only exceptions for third party libraries go here. WebRTC's code should use
# the RTC_NO_SANITIZE macro. Please think twice before adding new exceptions.
#############################################################################
# OpenH264 triggers some errors that are out of our control.
src:*/third_party/ffmpeg/libavcodec/*
src:*/third_party/openh264/*
# TODO(bugs.webrtc.org/11110).
# Remove those once upstream code has been cleaned.
src:*/third_party/abseil-cpp/absl/debugging/*
src:*/third_party/libvpx/source/libvpx/vp8/*
#############################################################################
# Ignore system libraries.
src:*/usr/*
#############################################################################
[alignment]
# Libaom and libsrtp are doing unaligned memory access.
src:*/third_party/libaom/source/libaom/*
src:*/third_party/libsrtp/srtp/srtp.c