Skip to content

Fix audited tooling, release, IR, reverse, and module boundary bugs - #397

Merged
LunaStev merged 8 commits into
wavefnd:masterfrom
LunaStev:fix/audit-batches-20261030
Oct 30, 2026
Merged

LunaStev merged 8 commits into
wavefnd:masterfrom
LunaStev:fix/audit-batches-20261030

Conversation

@LunaStev

Copy link
Copy Markdown
Member

Result

Fix 22 reproducible audit findings in eight ordered, signed-off commits. The changes preserve Whale's source-level module boundaries and the Wave-owned asmobj module; they do not add an SDK or restore the unavailable reverse decoder.

  1. Tooling (Preserve raw-string contents when a Rust label precedes the literal #390, Reject duplicate benchmark phases before comparing report fingerprints #391): keep Rust lifetimes from corrupting formatter lexical state and reject duplicate benchmark phase names.
  2. Release (Validate release manifest shape and exact field types before indexing #386, Bound tar extended metadata before release archive parsing allocates it #387): validate manifest field types and reject nonregular tar metadata before expansion under a bounded read.
  3. Reverse ELF (Ignore inactive SHT_NULL headers during ET_EXEC image inspection #375, Check ET_EXEC string-table boundary NUL bytes before resolving names #376, Validate the null symbol and sh_info boundary in ET_EXEC symbol tables #377, Ignore empty PT_LOAD intervals when checking executable mapping overlap #392): validate executable string/symbol metadata, skip inactive null sections, and handle empty load ranges without false overlap.
  4. IR (Reject unsupported float arithmetic opcodes before the NaN fast path #378, Validate public float conversion types and payloads instead of panicking #379, Lower aggregate self-assignment without introducing an overlapping-memcpy trap #380, Index IR function declarations and definitions to remove quadratic verification scans #382): validate float helper inputs, snapshot aliased aggregate assignments, and index declarations once during call verification.
  5. Artifacts (Preserve the complete asmobj artifact set when publication fails #381, Enforce portable filename component lengths for backend artifacts #388): roll back failed asmobj publication and bound artifact path components in both UTF-8 and UTF-16 units.
  6. Diagnostics (Escape source filenames in legacy AsmError display #383, Escape filenames in original-location and located lowering error display #384): escape assembler and IR source names while retaining the original annotation data.
  7. Reverse and CLI (Provide a checked presentation boundary for invalid public instruction lengths #385, Handle closed stdout in reverse and disasm help without panicking #389, Reject option-shaped output values in IR print and lower #393, Describe unavailable reverse capabilities accurately in CLI help #396): make public instruction rendering fallible for invalid lengths, handle closed help stdout, reject option-shaped IR output paths, and describe current reverse capability accurately.
  8. Module checks (Resolve workspace-inherited dependencies in the module-layer checker #394, Make CLI integration tests respect selected assembler features #395): resolve inherited workspace paths in production dependency audits and exercise no-ISA and single-ISA products in CI.

Validation

  • Built and used the pinned Wave asmobj archive on Linux x86_64 for integration tests. Ordinary Cargo still builds without the Wave compiler.
  • cargo test --workspace --locked --offline: 520 passed; --all-features: 600 passed.
  • Root test suite passed with no default features and with each of asm-amd64, asm-aarch64, asm-riscv64, and asm-loongarch64 individually selected.
  • Workspace Clippy with -D warnings (default/all features), warning-free rustdoc, Rust 1.86 MSRV tests, formatting, 91 Python tool tests, and actionlint passed.
  • Bounded assembler/object/IR/AST mutation smoke, 128 schema agreement cases, and the generated IR memory model passed.

Reverse inspection works without a decoder; disassembly, CFG, and xrefs continue to report explicit unavailability. This PR does not implement a native IR backend or source recovery.

Closes #390
Closes #391
Closes #386
Closes #387
Closes #375
Closes #376
Closes #377
Closes #392
Closes #378
Closes #379
Closes #380
Closes #382
Closes #381
Closes #388
Closes #383
Closes #384
Closes #385
Closes #389
Closes #393
Closes #396
Closes #394
Closes #395

@LunaStev
LunaStev force-pushed the fix/audit-batches-20261030 branch from 4a39ef2 to ae76f00 Compare October 30, 2026 06:39
@LunaStev
LunaStev merged commit acd25bc into wavefnd:master Oct 30, 2026
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment