upstream: https://github.com/mirage/ocaml-gpt
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Migrate from vendored crowbar to opam-pinned alcobar

- Remove vendored crowbar/ directory
- Replace all Crowbar references with Alcobar across 176 .ml files
- Update all fuzz dune files: crowbar → alcobar in libraries
- Remove 77 gen_corpus.ml files (alcobar handles corpus internally)
- Update dune-project files: crowbar → alcobar in dependencies
- Update merlint rules (e705, e726): Crowbar → Alcobar in checks,
docs, and examples
- Update merlint generated docs (index.html)

428 files changed, ~1200 lines removed net.

+5 -27
+2 -8
fuzz/dune
··· 6 6 (executable 7 7 (name fuzz) 8 8 (modules fuzz fuzz_gpt) 9 - (libraries gpt bytesrw crowbar)) 10 - 11 - (executable 12 - (name gen_corpus) 13 - (modules gen_corpus) 14 - (libraries unix)) 9 + (libraries gpt bytesrw alcobar)) 15 10 16 11 (rule 17 12 (alias runtest) ··· 27 22 (= %{profile} afl)) 28 23 (deps 29 24 (source_tree corpus) 30 - fuzz.exe 31 - gen_corpus.exe) 25 + fuzz.exe) 32 26 (action 33 27 (echo "AFL fuzzer built: %{exe:fuzz.exe}\n")))
+1 -1
fuzz/fuzz.ml
··· 1 - let () = Crowbar.run "gpt" [ Fuzz_gpt.suite ] 1 + let () = Alcobar.run "gpt" [ Fuzz_gpt.suite ]
+1 -1
fuzz/fuzz_gpt.ml
··· 14 14 - Partition count field can claim huge values 15 15 - LBA values can overflow when multiplied by sector size *) 16 16 17 - open Crowbar 17 + open Alcobar 18 18 19 19 (** Truncate input to reasonable size. *) 20 20 let truncate ?(max_len = 4096) buf =
+1 -1
fuzz/fuzz_gpt.mli
··· 1 1 (** Fuzz tests for {!Gpt}. *) 2 2 3 - val suite : string * Crowbar.test_case list 3 + val suite : string * Alcobar.test_case list 4 4 (** Test suite. *)
-16
fuzz/gen_corpus.ml
··· 1 - (** Generate seed corpus for fuzz testing. *) 2 - 3 - let () = 4 - (try Unix.mkdir "corpus" 0o755 5 - with Unix.Unix_error (Unix.EEXIST, _, _) -> ()); 6 - let write name data = 7 - let oc = open_out_bin (Filename.concat "corpus" name) in 8 - output_string oc data; 9 - close_out oc 10 - in 11 - write "seed_000" ""; 12 - write "seed_001" (String.make 512 '\x00'); 13 - write "seed_002" "EFI PART"; 14 - write "seed_003" (String.make 92 '\x00'); 15 - write "seed_004" (String.make 128 '\xff'); 16 - write "seed_005" "\x00\x00\x01\x00EFI PART"