forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 1
/
rules_fuzzing.patch
29 lines (27 loc) · 1.07 KB
/
rules_fuzzing.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
diff --git a/fuzzing/private/oss_fuzz/package.bzl b/fuzzing/private/oss_fuzz/package.bzl
index e5e9dc4..a3bb1b8 100644
--- a/fuzzing/private/oss_fuzz/package.bzl
+++ b/fuzzing/private/oss_fuzz/package.bzl
@@ -71,7 +71,7 @@ def _oss_fuzz_package_impl(ctx):
if [[ -n "{options_path}" ]]; then
ln -s "$(pwd)/{options_path}" "$STAGING_DIR/{base_name}.options"
fi
- tar -chf "{output}" -C "$STAGING_DIR" .
+ tar -czhf "{output}" -C "$STAGING_DIR" .
""".format(
base_name = ctx.attr.base_name,
binary_path = binary_info.binary_file.path,
diff --git a/fuzzing/tools/validate_dict.py b/fuzzing/tools/validate_dict.py
index d561e68..24e3adc 100644
--- a/fuzzing/tools/validate_dict.py
+++ b/fuzzing/tools/validate_dict.py
@@ -19,6 +19,11 @@ Validates and merges a set of fuzzing dictionary files into a single output.
from absl import app
from absl import flags
+
+import os
+import sys
+sys.path += [os.path.dirname(__file__)]
+
from dict_validation import validate_line
from sys import stderr