diff options
author | Aaron Green <aarongreen@google.com> | 2020-04-16 10:05:43 -0700 |
---|---|---|
committer | Aaron Green <aarongreen@google.com> | 2020-04-24 15:22:39 +0000 |
commit | 1f1c251a637f42300db0b3f2632ac5b2a475d28d (patch) | |
tree | a1408da1e18dc7e3866c5d4f5a5cb8994c49daa9 /pw_varint/BUILD.gn | |
parent | 1fed89ccfdd3c611130827d7ce8f72132f010d1a (diff) | |
download | pigweed-1f1c251a637f42300db0b3f2632ac5b2a475d28d.tar.gz |
Allow-list unsigned integer overflows.
This CL adds the 'no_sanitize("unsigned-integer-overflow")' Clang/LLVM
attribute to several locations that intentionally rely on that behavior.
From https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html: "this
is not undefined behavior, but it is often unintentional." By using an
explicit allow-list, we should still be able to detect the latter case.
Change-Id: I7d7da40c73fd22b6b29196dc4788eb00fca61439
Bug: 190
Diffstat (limited to 'pw_varint/BUILD.gn')
-rw-r--r-- | pw_varint/BUILD.gn | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pw_varint/BUILD.gn b/pw_varint/BUILD.gn index 9b79a5cfb..ffd6b9032 100644 --- a/pw_varint/BUILD.gn +++ b/pw_varint/BUILD.gn @@ -21,7 +21,10 @@ config("default_config") { source_set("pw_varint") { public_configs = [ ":default_config" ] - public_deps = [ "$dir_pw_span" ] + public_deps = [ + "$dir_pw_preprocessor", + "$dir_pw_span", + ] sources = [ "public/pw_varint/varint.h", "varint.cc", |