aboutsummaryrefslogtreecommitdiff
path: root/projects/pyyaml/fuzz_loader.py
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2021-10-12 19:09:43 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-10-12 19:09:43 +0000
commitc85b7e55ec0fb08fd3b303fe9281424d1c117f60 (patch)
tree1986de3b646aa32bbe34a45cd3af0c06cb07afa0 /projects/pyyaml/fuzz_loader.py
parent75c8dcf71ca8652f671b4ca5fea780a558c86e08 (diff)
parent83853d5c3c3e8e52b662faf34193c32e2737903e (diff)
downloadoss-fuzz-c85b7e55ec0fb08fd3b303fe9281424d1c117f60.tar.gz
Upgrade oss-fuzz to fd15c6d57aa13667af2521daf6167a2d8cd2ecb7 am: ebda00b748 am: 83853d5c3c
Original change: https://android-review.googlesource.com/c/platform/external/oss-fuzz/+/1854493 Change-Id: Ib651a9289868094de89fab8703ea57b3bbd6720c
Diffstat (limited to 'projects/pyyaml/fuzz_loader.py')
-rw-r--r--projects/pyyaml/fuzz_loader.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/projects/pyyaml/fuzz_loader.py b/projects/pyyaml/fuzz_loader.py
index 6600d842b..40c9fcc56 100644
--- a/projects/pyyaml/fuzz_loader.py
+++ b/projects/pyyaml/fuzz_loader.py
@@ -14,11 +14,15 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+import sys
+
import atheris
-import yaml
+with atheris.instrument_imports():
+ import yaml
+@atheris.instrument_func
def TestOneInput(input_bytes):
try:
context = yaml.load(input_bytes, Loader=yaml.FullLoader)