diff options
author | DavidKorczynski <david@adalogics.com> | 2022-07-11 13:30:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-11 13:30:53 +0100 |
commit | b4ba42d58e34c3cc4673aad5531aebd88da2846b (patch) | |
tree | 2dec52bce2ae5e6226f0b0702d6e11062d8ada1b /projects | |
parent | 54e2b966035205ad3178239fa2e3ecca4fc21235 (diff) |
flask: fix build (#7989)
Builds Werkzeug from latest, which is also needed for proper fuzzing.
Fixes: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=49025
Diffstat (limited to 'projects')
-rw-r--r-- | projects/flask/Dockerfile | 3 | ||||
-rw-r--r-- | projects/flask/build.sh | 6 |
2 files changed, 8 insertions, 1 deletions
diff --git a/projects/flask/Dockerfile b/projects/flask/Dockerfile index 9a6bf613..4d9ff65d 100644 --- a/projects/flask/Dockerfile +++ b/projects/flask/Dockerfile @@ -15,7 +15,10 @@ ################################################################################ FROM gcr.io/oss-fuzz-base/base-builder-python +RUN apt-get update && apt-get install -y libffi-dev RUN git clone https://github.com/pallets/flask +RUN git clone https://github.com/pallets/werkzeug RUN git clone https://github.com/corydolphin/flask-cors RUN git clone --depth=1 https://github.com/google/fuzzing/ +RUN pip3 install markupsafe itsdangerous jinja2 COPY build.sh *.py $SRC/ diff --git a/projects/flask/build.sh b/projects/flask/build.sh index 27572bc9..a440d971 100644 --- a/projects/flask/build.sh +++ b/projects/flask/build.sh @@ -15,10 +15,14 @@ # ################################################################################ +# Build Werkzeug from latest +cd $SRC/werkzeug +pip3 install -r ./requirements/dev.in +pip3 install . + # Build flask cd $SRC/flask python3 -m pip install importlib_metadata -pip3 install -r ./requirements/tests-pallets-min.in pip3 install . # Build flask-cors |