mirror of https://github.com/google/oss-fuzz.git
naga: initial integration (#9025)
Hi, [naga](https://github.com/gfx-rs/naga) The shader translation library for the needs of [wgpu](https://github.com/gfx-rs/wgpu). - It has 1 million+ downloads as per [crates.io](https://crates.io/crates/naga). - It is being used by projects like: - [wgpu](https://github.com/gfx-rs/wgpu) - [bevy](https://github.com/bevyengine/bevy) - [gfx](https://github.com/gfx-rs/gfx) Co-authored-by: Navidem <navid.emamdoost@gmail.com>
This commit is contained in:
parent
fbf649a9fe
commit
f8088ef0ef
|
@ -0,0 +1,21 @@
|
|||
# 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 apt-get update && apt-get install -y make autoconf automake libtool
|
||||
RUN git clone --depth 1 https://github.com/gfx-rs/naga naga
|
||||
WORKDIR naga
|
||||
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.
|
||||
#
|
||||
################################################################################
|
||||
|
||||
cargo fuzz build -O
|
||||
fuzz_release=fuzz/target/x86_64-unknown-linux-gnu/release
|
||||
cp $fuzz_release/spv_parser $OUT/
|
||||
cp $fuzz_release/wgsl_parser $OUT/
|
|
@ -0,0 +1,10 @@
|
|||
homepage: "https://github.com/gfx-rs/naga"
|
||||
language: rust
|
||||
main_repo: "https://github.com/gfx-rs/naga"
|
||||
primary_contact: "jblandy@mozilla.com"
|
||||
sanitizers:
|
||||
- address
|
||||
fuzzing_engines:
|
||||
- libfuzzer
|
||||
vendor_ccs:
|
||||
- maxnair.dev@gmail.com
|
Loading…
Reference in New Issue