File tree Expand file tree Collapse file tree 3 files changed +12
-9
lines changed
projects/python-email-validator Expand file tree Collapse file tree 3 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 16
16
17
17
FROM gcr.io/oss-fuzz-base/base-builder-python
18
18
RUN apt-get update && apt-get install -y make autoconf automake libtool
19
- RUN git clone --depth 1 https://github.com/JoshData/python-email-validator python-email-validator
19
+ RUN git clone --depth 1 https://github.com/JoshData/python-email-validator python-email-validator
20
+ RUN git clone --depth 1 https://github.com/manunio/fuzz-corpus fuzz-corpus
20
21
WORKDIR python-email-validator
21
22
COPY build.sh *.py $SRC/
Original file line number Diff line number Diff line change 15
15
#
16
16
# ###############################################################################
17
17
18
+ zip -r $OUT /fuzz_validator_corpus_seed.zip $SRC /fuzz-corpus/python-email-validator
19
+
18
20
pip3 install .
19
21
for fuzzer in $( find $SRC -name ' fuzz_*.py' ) ; do
20
22
compile_python_fuzzer $fuzzer
Original file line number Diff line number Diff line change 21
21
22
22
23
23
def TestOneInput (data ):
24
- try :
25
- validate_email (data )
26
- except (EmailSyntaxError , EmailUndeliverableError ):
27
- pass
24
+ try :
25
+ validate_email (data )
26
+ except (EmailSyntaxError , EmailUndeliverableError ):
27
+ pass
28
28
29
29
30
30
def main ():
31
- atheris .Setup (sys .argv , TestOneInput , enable_python_coverage = True )
32
- atheris .instrument_all ()
33
- atheris .Fuzz ()
31
+ atheris .Setup (sys .argv , TestOneInput , enable_python_coverage = True )
32
+ atheris .instrument_all ()
33
+ atheris .Fuzz ()
34
34
35
35
36
36
if __name__ == "__main__" :
37
- main ()
37
+ main ()
You can’t perform that action at this time.
0 commit comments