Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/.clusterfuzzlite/build.sh # omega-mv Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance. Brought by drakestapleton Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / .clusterfuzzlite / build.sh` 26 lines ยท 1504 bytes Raw Blame History 1 #!/bin/bash -eu 2 # DRAFT (never submitted). OSS-Fuzz / ClusterFuzzLite build: compile each om/tls fuzz target with the pinned 3 # omc (aarch64, run through qemu-aarch64-static), then one labelled host-tooling libFuzzer driver per target. 4 # Guide: https://google.github.io/oss-fuzz/getting-started/new-project-guide/ 5 cd "$SRC/omega-mv" 6 F=om/tls/test/fuzz 7 # om/tls/build.sh execs "$1" as one argv. A space-joined qemu command is looked up as a 8 # single filename and fails with "not found" (PR address check, job `121881757564`). 9 cat > "$WORK/omc-qemu" << EOF 10 #!/bin/sh 11 exec qemu-aarch64-static "$SRC/omega-mv/seed/out/omc" "\$@" 12 EOF 13 chmod +x "$WORK/omc-qemu" 14 for t in fz_flight fz_hs fz_x509 fz_pem fz_dns fz_http fz_https; do 15 cat seed/net/http.om seed/net/https.om $F/common.om $F/$t.om > "$WORK/$t.prog.om" 16 # The integrity tool build.sh compiles is aarch64 too; run it the same way (job `124384893839`: 17 # "fz_flight.om.bin.tmp.itool: Exec format error"). 18 OMTLS_RUN=qemu-aarch64-static sh om/tls/build.sh "$WORK/omc-qemu" "$WORK/$t.prog.om" "$OUT/$t.om.bin" 19 $CC $CFLAGS -c $F/oss-fuzz/omexec_fuzzer.c -o "$WORK/omexec.o" 20 $CXX $CXXFLAGS "$WORK/omexec.o" $LIB_FUZZING_ENGINE -o "$OUT/$t" 21 case $t in fz_flight|fz_hs|fz_x509) a=fzstore.pem;; fz_pem) a=chain.bin;; *) a=;; esac 22 [ -n "$a" ] && cp $F/seeds/$a "$OUT/$a" 23 printf '[libfuzzer]\nmax_len = 65536\n' > "$OUT/$t.options" 24 [ -n "$a" ] && printf '%s\n' "$OUT/$a" > "$OUT/$t.arg" 25 (cd $F/seeds/$t && zip -q "$OUT/${t}_seed_corpus.zip" *) 26 done