Harden code mode host I/O

This commit is contained in:
Channing Conger
2026-06-25 01:05:10 +00:00
parent 08c82e1b07
commit c6e9b32dd2
7 changed files with 424 additions and 30 deletions
@@ -80,7 +80,7 @@ where
})?;
if payload.len() > MAX_FRAME_BYTES {
return Err(io::Error::new(
io::ErrorKind::InvalidData,
io::ErrorKind::InvalidInput,
format!(
"code-mode IPC frame length {} exceeds {MAX_FRAME_BYTES} bytes",
payload.len()