Nightly fuzzing on cnx01: text, uploads, the signed copy
.gitea/workflows/fuzz.yml runs cargo-fuzz (libFuzzer, nightly Rust) at 03:00 Chiang Mai time on runner02 on cnx01 (runs-on: cnx01; the label comes with cnx-network-clan PR #170), 10 minutes a target, under nice -n 19 (.gitea/scripts/fuzz.sh). Targets, bodies in src/fuzzing.rs: - text: passport zones and OCR output (whatever from_ocr returns must parse), positions, names, dates, Thai numbers, agreement texts and the contract diff. - upload: a file as files::sniff types it, through the pack's image and PDF code to a finished A4 page (pack::pdf::sides), EXIF orientation. - signed_copy: the drawn signature's PNG, or any text as the agreement, in the signed copy's PDF. fuzz/seeds/ holds small real files to start from (JPEG with JFIF and EXIF, PNG with pHYs, palette PNG, WebP lossy and lossless, A4 and landscape PDF, a drawn signature, zone, OCR, map links, Thai names). The grown corpus stays in the runner's cache; a crash fails the job and leaves its input as the artifact fuzz-findings, which goes into tests/fuzz_cases/<target>/ with the fix. tests/fuzz_cases.rs replays those and the seeds on every push, on stable. No sanitizer (safe Rust, about three times the inputs), debug assertions on, 10 s and 2 GB per input count as findings. DRAWING_LIMIT moved to agreements so the target uses the client page's limit. A local run of 60 s each in a Linux container: 635,522 / 9,763 / 4,089 inputs, peak 62 MB, nothing found.
No files matched your search
@@ -0,0 +1,6 @@
|
||||
/target/
|
||||
/corpus/
|
||||
/artifacts/
|
||||
/coverage/
|
||||
# a copy of ../Cargo.lock plus libfuzzer-sys, made before each build
|
||||
/Cargo.lock
|
||||
@@ -0,0 +1,41 @@
|
||||
# The fuzz targets (cargo-fuzz, nightly Rust): .gitea/workflows/fuzz.yml
|
||||
# runs them every night on cnx01. Each one only calls its body in
|
||||
# src/fuzzing.rs, which tests/fuzz_cases.rs replays on stable.
|
||||
# Locally (Linux): cp Cargo.lock fuzz/ && cargo +nightly fuzz run text
|
||||
[package]
|
||||
name = "visa-fuzz"
|
||||
version = "0.0.0"
|
||||
edition = "2024"
|
||||
publish = false
|
||||
|
||||
[package.metadata]
|
||||
cargo-fuzz = true
|
||||
|
||||
[dependencies]
|
||||
libfuzzer-sys = "0.4"
|
||||
visa = { path = ".." }
|
||||
|
||||
# its own workspace, so the app's cargo commands leave it alone
|
||||
[workspace]
|
||||
members = ["."]
|
||||
|
||||
[[bin]]
|
||||
name = "text"
|
||||
path = "fuzz_targets/text.rs"
|
||||
test = false
|
||||
doc = false
|
||||
bench = false
|
||||
|
||||
[[bin]]
|
||||
name = "upload"
|
||||
path = "fuzz_targets/upload.rs"
|
||||
test = false
|
||||
doc = false
|
||||
bench = false
|
||||
|
||||
[[bin]]
|
||||
name = "signed_copy"
|
||||
path = "fuzz_targets/signed_copy.rs"
|
||||
test = false
|
||||
doc = false
|
||||
bench = false
|
||||
@@ -0,0 +1,3 @@
|
||||
#![no_main]
|
||||
|
||||
libfuzzer_sys::fuzz_target!(|data: &[u8]| visa::fuzzing::signed_copy(data));
|
||||
@@ -0,0 +1,3 @@
|
||||
#![no_main]
|
||||
|
||||
libfuzzer_sys::fuzz_target!(|data: &[u8]| visa::fuzzing::text(data));
|
||||
@@ -0,0 +1,3 @@
|
||||
#![no_main]
|
||||
|
||||
libfuzzer_sys::fuzz_target!(|data: &[u8]| visa::fuzzing::upload(data));
|
||||
@@ -0,0 +1,8 @@
|
||||
# 1. Purpose
|
||||
Lanna Desk keeps your data for your stay.
|
||||
|
||||
- name
|
||||
- passport
|
||||
|
||||
# 2. ข้อมูลส่วนบุคคล
|
||||
ข้อมูลส่วนบุคคลของท่านจะถูกเก็บรักษาไว้อย่างปลอดภัย
|
||||
|
After Width: | Height: | Size: 798 B |
@@ -0,0 +1 @@
|
||||
2026-11-23
|
||||
@@ -0,0 +1 @@
|
||||
18°47'47.4"N 99°00'29.5"E
|
||||
@@ -0,0 +1 @@
|
||||
https://www.google.com/maps/@18.7965,99.0082,17z
|
||||
@@ -0,0 +1,3 @@
|
||||
REPUBLIC OF UTOPIA
|
||||
p<utoeriksson<<anna<maria<<<<<<<<<<<<<<<<<<<
|
||||
L898902C36UTO74O8122F12O4159ZE184226B<<<<<1O
|
||||
@@ -0,0 +1 @@
|
||||
https://www.openstreetmap.org/?mlat=18.796500&mlon=99.008200#map=18/18.796500/99.008200
|
||||
@@ -0,0 +1 @@
|
||||
0505569014981
|
||||
@@ -0,0 +1,2 @@
|
||||
P<UTOERIKSSON<<ANNA<MARIA<<<<<<<<<<<<<<<<<<<
|
||||
L898902C36UTO7408122F1204159ZE184226B<<<<<10
|
||||
|
After Width: | Height: | Size: 164 B |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 486 B |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 408 B |