Skip to content

Commit 73445dc

Browse files
authored
rust-semver-parser: initial integration (#12636)
This PR initialises OSS-Fuzz integration for the semver-parser project in Rust. New fuzzers have been created, and a PR (steveklabnik/semver-parser#63) has been submitted upstream to merge the fuzzers. REMARK: This PR only works when the upstream fuzzers PR has been merged. --------- Signed-off-by: Arthur Chan <[email protected]>
1 parent f12a352 commit 73445dc

File tree

3 files changed

+53
-0
lines changed

3 files changed

+53
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Copyright 2024 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
#
15+
################################################################################
16+
FROM gcr.io/oss-fuzz-base/base-builder-rust
17+
18+
RUN git clone https://github.com/steveklabnik/semver-parser
19+
WORKDIR $SRC/semver-parser
20+
21+
COPY build.sh $SRC/

projects/rust-semver-parser/build.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash -eu
2+
# Copyright 2024 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
################################################################################
17+
18+
cargo fuzz build
19+
20+
cp fuzz/target/x86_64-unknown-linux-gnu/release/parse $OUT/
21+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
homepage: "https://github.com/steveklabnik/semver-parser"
2+
main_repo: "https://github.com/steveklabnik/semver-parser.git"
3+
primary_contact: "[email protected]"
4+
sanitizers:
5+
- address
6+
fuzzing_engines:
7+
- libfuzzer
8+
language: rust
9+
auto_ccs:
10+
11+

0 commit comments

Comments
 (0)