Repository navigation
fix(hy-check): validate call arity and reject non-callable type on flate2 package (fixes #4205) - #4206
Conversation
4ce49a4 to
7fb240f
Compare
Not landed — compile gate FAIL: unresolved merge-conflict markers committed in
|
Additional finding while triaging sibling PRs this cycle — heads-up before you fix the markersBeyond the two fixes in the review above (conflict markers at blob lines 8164/8170 + CRLF normalization), there is a third, deeper issue: neither That means once the markers are fixed, Options: (a) re-target at an allowlisted package (sort/bufio/strconv/url/filepath have open gaps), or (b) propose allowlisting |
…s on foreign rust crate flate2 - Validate call arity on flate2.new_writer (exact 1 arg: level) and enforce named parameter checks - Validate call arity on flate2.write (exact 2 args: w, data) and enforce named parameter checks - Validate call arity on flate2.finish (exact 1 arg: w) and enforce named parameter checks - Reject non-function package type flate2.writer with HYB-E1002 - Add comprehensive regression tests in flate2_package_call_buildable_soundness.rs Settlement Wallet (Base L2 USDC): 0x759797593fed8f313d8fdba7a3a0d491f0e4b9f7
7fb240f to
a562b8f
Compare
Summary
Fixes #4205
Under GUARANTEES.md Row 13 (BUILDABLE), foreign package calls to curated Rust crate
flate2(rust/flate2) must enforce call arity constraints and reject invocations on non-callable types:flate2.writerinvocation as non-function withHYB-E1002.flate2.new_writer: requires exact 1 argument(level)and validates named parameterlevel.flate2.write: requires exact 2 arguments(w, data)and validates named parametersw,data.flate2.finish: requires exact 1 argument(w)and validates named parameterw.flate2bindings preserve user semantics without false positives.compiler/crates/hy-check/tests/flate2_package_call_buildable_soundness.rs.Settlement Details
0x759797593fed8f313d8fdba7a3a0d491f0e4b9f7