From c2c093ddacfe4f94087c4b547300fb158a481aad Mon Sep 17 00:00:00 2001 From: DavidKorczynski Date: Thu, 26 May 2022 12:09:22 +0100 Subject: [PATCH] aiohttp: ensure compiled python runs (#7768) --- projects/aiohttp/fuzz_http_parser.py | 5 ++++- projects/aiohttp/fuzz_http_payload_parser.py | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/projects/aiohttp/fuzz_http_parser.py b/projects/aiohttp/fuzz_http_parser.py index 2d0a30575..589856f38 100644 --- a/projects/aiohttp/fuzz_http_parser.py +++ b/projects/aiohttp/fuzz_http_parser.py @@ -16,7 +16,10 @@ import os AIOHTTP_VAL=0 -os.environ["AIOHTTP_NO_EXTENSIONS"] = str(AIOHTTP_VAL) +if AIOHTTP_VAL == 0: + os.environ["AIOHTTP_NO_EXTENSIONS"] = "" +else: + os.environ["AIOHTTP_NO_EXTENSIONS"] = "1" import sys import atheris diff --git a/projects/aiohttp/fuzz_http_payload_parser.py b/projects/aiohttp/fuzz_http_payload_parser.py index 2be93446f..44618ef51 100644 --- a/projects/aiohttp/fuzz_http_payload_parser.py +++ b/projects/aiohttp/fuzz_http_payload_parser.py @@ -15,7 +15,10 @@ import os AIOHTTP_VAL=0 -os.environ["AIOHTTP_NO_EXTENSIONS"] = str(AIOHTTP_VAL) +if AIOHTTP_VAL == 0: + os.environ["AIOHTTP_NO_EXTENSIONS"] = "" +else: + os.environ["AIOHTTP_NO_EXTENSIONS"] = "1" import sys import atheris