mirror of https://github.com/google/oss-fuzz.git
Submit itoa and ryu. (#7928)
* Submit itoa and ryu. These two libraries are used by serde_json which, in turn, is used as the standard JSON parser in various higher level projects. Both itoa and ryu contain unsafe code, which this fuzzes. * Update project.yaml * Update project.yaml * Update Dockerfile * Update Dockerfile * Rejigging ryu/itoa Dockerfiles. Previously I was following the example of image-png, but that appears not to be the modern standard. Now following the example of zip-rs instead. * Fix Dockerfile error * Further Dockerfile fix. Co-authored-by: jonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com>
This commit is contained in:
parent
454a645eed
commit
36a6c45c52
|
@ -0,0 +1,22 @@
|
|||
# Copyright 2022 Google LLC
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
################################################################################
|
||||
|
||||
FROM gcr.io/oss-fuzz-base/base-builder-rust
|
||||
|
||||
RUN git clone --depth 1 https://github.com/dtolnay/itoa
|
||||
WORKDIR $SRC
|
||||
|
||||
COPY build.sh $SRC/
|
|
@ -0,0 +1,21 @@
|
|||
#!/bin/bash -eu
|
||||
# Copyright 2022 Google LLC
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
################################################################################
|
||||
|
||||
cd $SRC
|
||||
cd itoa
|
||||
cargo fuzz build -O
|
||||
cp fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_itoa $OUT/
|
|
@ -0,0 +1,10 @@
|
|||
homepage: "https://github.com/dtolnay/itoa"
|
||||
primary_contact: "dtolnay@gmail.com"
|
||||
main_repo: "https://github.com/dtolnay/itoa"
|
||||
sanitizers:
|
||||
- address
|
||||
fuzzing_engines:
|
||||
- libfuzzer
|
||||
language: rust
|
||||
auto_ccs:
|
||||
- "adetaylor@chromium.org"
|
|
@ -0,0 +1,22 @@
|
|||
# Copyright 2022 Google LLC
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
################################################################################
|
||||
|
||||
FROM gcr.io/oss-fuzz-base/base-builder-rust
|
||||
|
||||
RUN git clone --depth 1 https://github.com/dtolnay/ryu
|
||||
WORKDIR $SRC
|
||||
|
||||
COPY build.sh $SRC/
|
|
@ -0,0 +1,21 @@
|
|||
#!/bin/bash -eu
|
||||
# Copyright 2022 Google LLC
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
################################################################################
|
||||
|
||||
cd $SRC
|
||||
cd ryu
|
||||
cargo fuzz build -O
|
||||
cp fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_ryu $OUT/
|
|
@ -0,0 +1,10 @@
|
|||
homepage: "https://github.com/dtolnay/ryu"
|
||||
main_repo: "https://github.com/dtolnay/ryu"
|
||||
primary_contact: "dtolnay@gmail.com"
|
||||
sanitizers:
|
||||
- address
|
||||
fuzzing_engines:
|
||||
- libfuzzer
|
||||
language: rust
|
||||
auto_ccs:
|
||||
- "adetaylor@chromium.org"
|
Loading…
Reference in New Issue