Repository navigation
Add standalone structured-data conversion through pinned kyq #93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
c85830c
050d17a
3e5fd31
ad314bd
8b46f3d
360d6fb
cab26ca
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| # SPDX-License-Identifier: MPL-2.0 | ||
| # Verified registry manifest, 2026-11-16. | ||
| FROM gcr.io/oss-fuzz-base/base-builder-rust@sha256:3428d0a90b1e7efbe2ba947bd1d0c9a70594986b4b6553804547f1fb24cfc92f | ||
|
Check warning on line 3 in .clusterfuzzlite/Dockerfile
|
||
| RUN apt-get update && apt-get install -y make autoconf automake libtool | ||
|
Check warning on line 4 in .clusterfuzzlite/Dockerfile
|
||
| # Copy only what the fuzz build reads: the workspace manifests (inherited | ||
| # package metadata), the converter crate and the fuzz workspace. A recursive | ||
| # copy of the context would also capture unrelated and possibly private files. | ||
| COPY Cargo.toml Cargo.lock $SRC/project/ | ||
| COPY crates/docmatrix-data $SRC/project/crates/docmatrix-data | ||
| COPY fuzz $SRC/project/fuzz | ||
| WORKDIR $SRC/project | ||
| COPY .clusterfuzzlite/build.sh $SRC/ | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,22 @@ | ||
| #!/bin/bash -eu | ||
|
|
||
| cd $SRC/project | ||
| cargo +nightly fuzz build --release | ||
| cp fuzz/target/*/release/fuzz_* $OUT/ | ||
| #!/usr/bin/env bash | ||
| # SPDX-License-Identifier: MPL-2.0 | ||
| set -euo pipefail | ||
| cd "$SRC/project" | ||
| rustc +nightly --version | ||
| cargo +nightly --version | ||
| cargo +nightly fuzz --version | ||
| # Explicit nightly overrides the production rust-toolchain.toml. The OSS-Fuzz | ||
| # image supplies its matching cargo-fuzz and sanitizer toolchain. | ||
| # cargo-fuzz 0.13 has no --locked option. Fetch the exact lock, forbid network | ||
| # resolution during compilation and fail if cargo-fuzz rewrites the lock. | ||
| locked_copy=$(mktemp) | ||
| trap 'rm -f "$locked_copy"' EXIT | ||
| cp fuzz/Cargo.lock "$locked_copy" | ||
| cargo +nightly fetch --locked --manifest-path fuzz/Cargo.toml | ||
| CARGO_NET_OFFLINE=true cargo +nightly fuzz build --target x86_64-unknown-linux-gnu --release --debug-assertions | ||
| cmp "$locked_copy" fuzz/Cargo.lock | ||
| for target in kyaml json jcs dhall; do | ||
| install -m 755 "fuzz/target/x86_64-unknown-linux-gnu/release/$target" "$OUT/$target" | ||
| cp "fuzz/options/$target.options" "$OUT/$target.options" | ||
| (cd "fuzz/corpus/$target" && zip -q -j "$OUT/${target}_seed_corpus.zip" ./*) | ||
| done |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| # SPDX-License-Identifier: MPL-2.0 | ||
| language: rust | ||
| # ClusterFuzzLite's Rust integration supports AddressSanitizer. | ||
| sanitizers: | ||
| - address | ||
| - undefined |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| .git | ||
| target | ||
| **/target | ||
| .eval | ||
| node_modules | ||
| .env | ||
| .env.* | ||
| *.pem | ||
| *.key | ||
| **/.env | ||
| **/.env.* | ||
| **/*.pem | ||
| **/*.key | ||
Uh oh!
There was an error while loading. Please reload this page.