Skip to content

Commit

Permalink
[jsonpickle]: Move Fuzz Harness & Configuration Upstream
Browse files Browse the repository at this point in the history
The jsonpickle project maintainers would like to take ownership of the
OSS-Fuzz integration & test harnesses. Discussion related to the
decision can be found here:
jsonpickle/jsonpickle#496
  • Loading branch information
DaveLak committed Oct 9, 2024
1 parent 1bbe1a8 commit de350a0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 53 deletions.
9 changes: 5 additions & 4 deletions projects/jsonpickle/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
#
##########################################################################
FROM gcr.io/oss-fuzz-base/base-builder-python
RUN pip3 install --upgrade pip simplejson
RUN git clone https://github.com/jsonpickle/jsonpickle jsonpickle
COPY *.sh *py $SRC/
WORKDIR $SRC/jsonpickle
RUN git clone --depth 1 https://github.com/jsonpickle/jsonpickle $SRC/jsonpickle
RUN $SRC/jsonpickle/fuzzing/oss-fuzz-scripts/container-environment-bootstrap.sh

COPY build.sh $SRC/
WORKDIR $SRC/jsonpickle/
9 changes: 3 additions & 6 deletions projects/jsonpickle/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
##########################################################################
pip3 install .
# Build fuzzers in $OUT.
for fuzzer in $(find $SRC -name 'fuzz_*.py'); do
compile_python_fuzzer $fuzzer --hidden-import=simplejson
done
################################################################################

. "$SRC/jsonpickle/fuzzing/oss-fuzz-scripts/build.sh"
41 changes: 0 additions & 41 deletions projects/jsonpickle/fuzz_unpickle.py

This file was deleted.

3 changes: 1 addition & 2 deletions projects/jsonpickle/project.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
homepage: https://github.com/jsonpickle/jsonpickle
main_repo: https://github.com/jsonpickle/jsonpickle
language: python
primary_contact: "[email protected]"
fuzzing_engines:
- libfuzzer
sanitizers:
- address
vendor_ccs:
- [email protected]

0 comments on commit de350a0

Please sign in to comment.