-
Notifications
You must be signed in to change notification settings - Fork 5.3k
build: bump rules_foreign_cc to e3f4b5e0 and switch to lld for .bazel… #6610
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
d55db6e
373007a
d4b9c34
ca950a9
636ae17
c71b7d5
1b1d6d3
c74550b
8560684
1e9ca0c
93a65c3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -48,7 +48,7 @@ new file mode 100755 | |
| index 0000000..9c71271 | ||
| --- /dev/null | ||
| +++ b/build.py | ||
| @@ -0,0 +1,28 @@ | ||
| @@ -0,0 +1,35 @@ | ||
| +#!/usr/bin/env python | ||
| + | ||
| +import argparse | ||
|
|
@@ -73,6 +73,13 @@ index 0000000..9c71271 | |
| + # fail on it. | ||
| + os.environ["LSAN_OPTIONS"] = "exitcode=0" | ||
| + | ||
| + # Blacklist LuaJIT from ASAN for now. | ||
| + # TODO(htuch): Remove this when https://github.com/envoyproxy/envoy/issues/6084 is resolved. | ||
| + if "ENVOY_CONFIG_ASAN" in os.environ: | ||
| + os.environ["TARGET_CFLAGS"] += " -fsanitize-blacklist=%s/com_github_luajit_luajit/clang-asan-blacklist.txt" % os.environ["PWD"] | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if we do
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's a useful hook to leave around to experiment with making this more precise, so I'd vote to keep it as is.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. SGTM |
||
| + with open("clang-asan-blacklist.txt", "w") as f: | ||
| + f.write("fun:*\n") | ||
| + | ||
| + os.system('make V=1 PREFIX="{}" install'.format(args.prefix)) | ||
| + | ||
| +main() | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| diff --git a/trees.c b/trees.c | ||
| index 50cf4b4..e705576 100644 | ||
| --- a/trees.c | ||
| +++ b/trees.c | ||
| @@ -870,7 +870,9 @@ void ZLIB_INTERNAL _tr_stored_block(s, buf, stored_len, last) | ||
| bi_windup(s); /* align on byte boundary */ | ||
| put_short(s, (ush)stored_len); | ||
| put_short(s, (ush)~stored_len); | ||
| - zmemcpy(s->pending_buf + s->pending, (Bytef *)buf, stored_len); | ||
| + if (stored_len > 0) { | ||
| + zmemcpy(s->pending_buf + s->pending, (Bytef *)buf, stored_len); | ||
| + } | ||
| s->pending += stored_len; | ||
| #ifdef ZLIB_DEBUG | ||
| s->compressed_len = (s->compressed_len + 3 + 7) & (ulg)~7L; | ||
| -- | ||
| 2.21.0.593.g511ec345e18-goog | ||
|
|
Uh oh!
There was an error while loading. Please reload this page.