Skip to content

Commit c3bedd8

Browse files
committed
Fix Fuzzing Build Failure Due to Outdated pip
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
1 parent ae9dd26 commit c3bedd8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

projects/gitpython/Dockerfile

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
FROM gcr.io/oss-fuzz-base/base-builder-python
16-
RUN git clone https://github.com/gitpython-developers/gitpython gitpython
16+
RUN git clone https://github.com/gitpython-developers/gitpython gitpython \
17+
&& python3 -m pip install --upgrade pip;
18+
1719
COPY *.sh *py $SRC/
1820
WORKDIR $SRC/gitpython

projects/gitpython/build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# limitations under the License.
1515
#
1616
################################################################################
17-
pip3 install .
17+
python3 -m pip install .
1818

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

0 commit comments

Comments
 (0)