aboutsummaryrefslogtreecommitdiff
path: root/projects/sqlalchemy
diff options
context:
space:
mode:
authorBitshift <puddles@google.com>2021-08-16 10:56:54 -0500
committerGitHub <noreply@github.com>2021-08-16 08:56:54 -0700
commit55a5812e8c53bf93bbf6000f3e0d0f168d164d1f (patch)
tree5101c2caeb7c435f4cddba5c8198c9e5a98a7dc5 /projects/sqlalchemy
parent926914100cfde1926ba30c3e3a1b8f305b9b7d03 (diff)
downloadoss-fuzz-55a5812e8c53bf93bbf6000f3e0d0f168d164d1f.tar.gz
Update fuzzers to new Atheris version (#6060)
* Update fuzzers to new Atheris version * Pin new atheris version * Change = to == * Change path where Atheris fuzzers ld_preload from * Update hypothesis fuzzer to work with new atheris * Set version to 2.0.1 * Switch to Atheris 2.0.4 * Correct spelling of pygments_fuzzer decorator * instrument yaml_reader * Change to latest Atheris * Set atheris version to 2.0.6
Diffstat (limited to 'projects/sqlalchemy')
-rw-r--r--projects/sqlalchemy/sqlalchemy_fuzzer.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/projects/sqlalchemy/sqlalchemy_fuzzer.py b/projects/sqlalchemy/sqlalchemy_fuzzer.py
index 64c53ee19..d3ae577ba 100644
--- a/projects/sqlalchemy/sqlalchemy_fuzzer.py
+++ b/projects/sqlalchemy/sqlalchemy_fuzzer.py
@@ -17,11 +17,13 @@
import sys
import atheris
-import sqlalchemy
-from sqlalchemy import create_engine
-from sqlalchemy import Table, Column, Integer, String, MetaData
-from sqlalchemy.sql import text
+with atheris.instrument_imports():
+ import sqlalchemy
+ from sqlalchemy import create_engine
+ from sqlalchemy import Table, Column, Integer, String, MetaData
+ from sqlalchemy.sql import text
+@atheris.instrument_func
def TestOneInput(input_bytes):
try:
sql_string = input_bytes.decode("utf-8")