Commit graph

12 commits

Author SHA1 Message Date
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
Artem Titov
c39080c883 Roll chromium + fix: blacklist -> ignorelist for sanitizers suppressions
Roll chromium_revision 19159a8788..a0132a2044 (886529:887053)

Change log: 19159a8788..a0132a2044
Full diff: 19159a8788..a0132a2044

Changed dependencies
* src/base: eb591f0d4b..43f91dbc50
* src/build: 4f39b7cf99..2f6e88e05d
* src/buildtools/third_party/libunwind/trunk: 7846d25635..c8d0fb870a
* src/ios: 6d4134ba11..61b28637d9
* src/testing: 04abc75222..55ab025d49
* src/third_party: 6dc8812614..3544467673
* src/third_party/catapult: https://chromium.googlesource.com/catapult.git/+log/74a278f9bb..e83a92e7b8
* src/third_party/depot_tools: 6d45691f60..6fc394f93d
* src/third_party/googletest/src: 23ef29555e..a3460d1aee
* src/third_party/perfetto: 78af063a63..be406c7d16
* src/tools: 255ad6c868..451fade863
DEPS diff: 19159a8788..a0132a2044/DEPS

No update to Clang.

Bug: webrtc:12817, webrtc:11680
Change-Id: Icf3b9678dbd529bb6878bcb12bdb4c1c3e7f2c24
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/220364
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#34145}
2021-05-27 16:16:01 +00:00
Mirko Bonadei
2a8932020e Rename sanitizers suppression files.
Bug: webrtc:11680
Change-Id: Idc5b0644ecf1368c5e070d92120c66487855cf31
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/178382
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Reviewed-by: Tommi <tommi@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#31627}
2020-07-03 18:29:58 +00:00
Patrik Höglund
afa2e5f18c Purge phoglund from most OWNERS files.
I'll hold on to the root OWNER for a bit longer for convenience.

Bug: None
Change-Id: I13303ba726fed612adc74008eeaaeadf9595e084
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/170047
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Commit-Queue: Patrik Höglund <phoglund@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#30727}
2020-03-09 14:08:30 +00:00
Yves Gerey
565c05888d [UBSan] Remove suppression for opus.
Defective code was fixed upstream,
so the suppression isn't needed anymore.

Bug: webrtc:11110
Change-Id: I7232f2c23de50005277893ce3ea2fe3be11c425d
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/161682
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Commit-Queue: Yves Gerey <yvesg@google.com>
Cr-Commit-Position: refs/heads/master@{#30048}
2019-12-10 08:59:30 +00:00
Yves Gerey
76a7e518bd [UBSan] Add suppressions for vp8, opus, absl.
Defects are newly detected by the latest clang version.
This CL mutes them.

Rationale:
* They concern third party code we cannot update here.
* They block chromium roll (containing said clang version).

Bug: webrtc:11110
Change-Id: I7abdfee7e42fd8e89d2296f18690fbda449509d1
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/160081
Commit-Queue: Yves Gerey <yvesg@google.com>
Reviewed-by: Patrik Höglund <phoglund@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#29860}
2019-11-21 13:40:47 +00:00
Peter Boström
de6914508e Remove pbos@webrtc.org from all OWNERS.
Bug: None
Change-Id: I49c4df3873f359c20f46a64592a05c3d001b708d
Reviewed-on: https://webrtc-review.googlesource.com/17720
Reviewed-by: Stefan Holmer <stefan@webrtc.org>
Commit-Queue: Stefan Holmer <stefan@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#20517}
2017-11-01 08:03:46 +00:00
Henrik Kjellander
90d46c472d Add phoglund@ to various OWNERS and remove kjellander@
TBR=henrika@webrtc.org

Bug: webrtc:8363
Change-Id: Ibcb3e8d40a93542ea0825faf92a6db11dc5a0c13
Notry: True
Reviewed-on: https://webrtc-review.googlesource.com/7606
Reviewed-by: Henrik Kjellander <kjellander@webrtc.org>
Reviewed-by: Patrik Höglund <phoglund@webrtc.org>
Commit-Queue: Henrik Kjellander <kjellander@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#20344}
2017-10-19 09:21:12 +00:00
oprypin
8ad0e589e7 Move UBSan warnings from a blacklist to the source
This is done to make UBSan testing more convenient in integration with projects using WebRTC

Some blacklist entries were obsolete so don't need a replacement

Also fix one of the warnings (thanks, kwiberg@)

BUG=webrtc:8189, webrtc:5486, webrtc:5491

Review-Url: https://codereview.webrtc.org/3009123002
Cr-Commit-Position: refs/heads/master@{#19682}
2017-09-05 10:00:37 +00:00
oprypin
ba09f79ba3 Make UBSan warnings fatal and fix the existing ones
The warnings were (all signed integer overflow):
webrtc/common_audio/signal_processing/levinson_durbin.c:46:25
12 * 268435456 cannot be represented in type 'int'
webrtc/modules/audio_processing/aecm/aecm_core.cc:930:69
522240 * 6115 cannot be represented in type 'int'
webrtc/modules/audio_processing/aecm/aecm_core_c.cc:455:36
72293096 * 50 cannot be represented in type 'int'
webrtc/modules/pacing/alr_detector.cc:70:48
1000000000 * 65 cannot be represented in type 'int'
webrtc/modules/rtp_rtcp/source/rtp_sender.cc:947:20
1929277286 + 321546521 cannot be represented in type 'int'

BUG=webrtc:8195

Review-Url: https://codereview.webrtc.org/3005003002
Cr-Commit-Position: refs/heads/master@{#19670}
2017-09-04 15:32:43 +00:00
thomasanderson
153e204e5d [Webrtc] Reenable libc++ on ubsan
BUG=webrtc:7922
R=ehmaldonado@webrtc.org

Review-Url: https://codereview.webrtc.org/2983583002
Cr-Commit-Position: refs/heads/master@{#19080}
2017-07-18 17:51:04 +00:00
Henrik Kjellander
90fd7d84fd Rename tools-webrtc -> tools_webrtc
This aligns with established naming convention for all
other directories.

BUG=webrtc:7593
NOTRY=True
NOTREECHECKS=True
R=ehmaldonado@webrtc.org, mbonadei@webrtc.org
TBR=henrika@webrtc.org

Review-Url: https://codereview.webrtc.org/2864213004 .
Cr-Commit-Position: refs/heads/master@{#18059}
2017-05-09 06:30:13 +00:00