Skip to content

Commit

Permalink
Fix Fuzzing Build Failure Due to Outdated pip
Browse files Browse the repository at this point in the history
The pre-installed version of `pip` (19.x) was outdated and unable to
parse the `pyproject.toml` syntax during the install step in `build.sh`
causing the script to error out and crash.

Upgrading `pip` to the latest version in the project image resolves the
issue and allows the installation to complete.

[1]: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=67399
  • Loading branch information
DaveLak committed Mar 30, 2024
1 parent ae9dd26 commit c3bedd8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion projects/gitpython/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
FROM gcr.io/oss-fuzz-base/base-builder-python
RUN git clone https://github.com/gitpython-developers/gitpython gitpython
RUN git clone https://github.com/gitpython-developers/gitpython gitpython \
&& python3 -m pip install --upgrade pip;

COPY *.sh *py $SRC/
WORKDIR $SRC/gitpython
2 changes: 1 addition & 1 deletion projects/gitpython/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# limitations under the License.
#
################################################################################
pip3 install .
python3 -m pip install .

# Build fuzzers in $OUT.
for fuzzer in $(find $SRC -name 'fuzz_*.py'); do
Expand Down

0 comments on commit c3bedd8

Please sign in to comment.