�
�r�cZ � � � d Z ddlZddlmZmZ ddlZ ej ej � � ej � � ej dd�� � ej
� � � � Z ej ej ej � � ej
ej
� � e� � � � d� �� � Z eee�� � d � � � Zd
� Zedk rddlZ e� � dS dS )z�
Fuzzing setup for OSS-Fuzz.
See https://github.com/google/oss-fuzz/tree/master/projects/jsonschema for the
other half of the setup here.
� N)�given�
strategiesF)� allow_nan�allow_infinityc �N � t j t j � � | � � S )N)r �dictionaries�text)�inners �@/usr/lib/python3/dist-packages/jsonschema/tests/fuzz_validate.py�<lambda>r s � ��0���1B�1B�E�J�J� � )�base�extend��obj1�obj2c � � t j | |�� � d S # t j j $ r Y d S t j j $ r Y d S w xY w)N)�instance�schema)�
jsonschema�validate�
exceptions�ValidationError�SchemaErrorr s r �test_schemasr sj � �
���T�$�7�7�7�7�7�7��� �0�
�
�
����� �,�
�
�
����
���s � �A�A�Ac � � t j � � t j t j t
j j d�� � t j � � d S )NT)�enable_python_coverage) �atheris�instrument_all�Setup�sys�argvr �
hypothesis�fuzz_one_input�Fuzz� r
r �mainr' |