d5917e7aab
road_file: any bytes as one road file in the home store. The parser never panics; a road that parses renders to canonical text that parses back to the same road and rendering is a fixed point; compile never panics; and a file that does not parse, or a road the compiler reports an error for, leaves every plan byte-identical (deny by default). envelope: Envelope::decode never panics; whatever it accepts re-encodes, decodes to the same envelope and encodes stably. Own workspace, as cargo fuzz lays it out. On Windows with the stable MSVC toolchain and no sanitizer, build.rs links win_sections.c, which gives the SanitizerCoverage counters their COFF section bounds (compiler-rt only ships them inside a sanitizer runtime); the exact command is in road_file.rs.
10 lines
739 B
C
10 lines
739 B
C
/* Section bounds for SanitizerCoverage's inline 8-bit counters on Windows (COFF), so the fuzz targets link
|
|
* without a sanitizer runtime. LLVM puts the counters in ".SCOV$CM"; the linker sorts ".SCOV$CA" before it and
|
|
* ".SCOV$CZ" after it, and libFuzzer reads everything in between. compiler-rt does the same in
|
|
* sanitizer_coverage_win_sections.cpp, which only ships inside a sanitizer runtime. Built only for MSVC targets
|
|
* and only for the fuzz crate, which is never part of a release. */
|
|
#pragma section(".SCOV$CA", read, write)
|
|
__declspec(allocate(".SCOV$CA")) unsigned char __start___sancov_cntrs[1] = {0};
|
|
#pragma section(".SCOV$CZ", read, write)
|
|
__declspec(allocate(".SCOV$CZ")) unsigned char __stop___sancov_cntrs[1] = {0};
|