[BUG] Native reply buffers are narrowed before receipt audit #3
Labels
No labels
alpha-1
bug
ci
docs
duplicate
enhancement
help wanted
invalid
performance
phase-6
question
refactor
security
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
erix/lib-cli#3
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Native broker calls reduce the caller's reply buffer to the minimum normal response size. Two receipt-audit tests consequently panic in their controlled transport instead of reaching the audit.
Reproduction
On
a2a8001bc641ec239ab088d15ff29c1f24af5fb3, run the normal CI dependency preparation followed bycargo test --all-targets --all-features.The failing cases are
every_parseable_surplus_receipt_is_attempted_and_first_native_drop_error_survivesandrelease_receipt_disposal_preserves_actual_native_error.Expected and actual behavior
Keep the caller's full reply storage after checking the minimum request and normal response capacity. Send only the encoded request bytes. Unexpected receipts must remain available for audit and individual disposal before the reply is refused.
The current run passes 21 tests and fails two. The acquisition fixture returns 216 bytes into a slice reduced to 184 bytes; the release fixture returns 96 bytes into a slice reduced to 72 bytes. Both panic at the fake transport's reply copy.
Environment and identity
a2a8001bc641ec239ab088d15ff29c1f24af5fb3521f200d4ce97f513a0ece2ef6f8da8e2bc4edad1841ca496b1d01ab71de8bdec07a91f854ecb688Evidence and prior checks
The original Rust CI failure contains both panics and the 21/2 test summary. Strict Clippy completed before the unit failures.
Tracking
Fixed in LibCli c0729043 and LibStdio 4e8de5af. Broker, file and stream calls retain the caller's full reply region while sending only the encoded request bytes. The existing two failing cases are preserved, with additional stream and file receipt controls. Current CI acceptance remains open.