You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
I encountered an issue with the input handling in the system using the following test code. The problem occurs under the following scenarios:
When the input buffer length exceeds 8192 bytes, the read operation only retrieves 8192 bytes of data.
When the input length buffer exceeds 24576 bytes, the program enters an infinite wait with no output and does not exit.
Steps to Reproduce:
Use the provided test code.
Run the code with an input bufferlength of 16384 bytes.
Observe that the read operation retrieves only 8192 bytes.
Increase the input bufferlength to exceed 24576 bytes.
Observe that the program enters an infinite wait with no output and does not exit.
Expected Behavior:
The buffer and echo should be equal, meaning the data written should match the data read without any loss or corruption.
Test Code:
use std::io::{BufReader,Read,Write};use std::net::TcpStream;fnmain() -> std::io::Result<()>{letmut stream = BufReader::new(TcpStream::connect("cat")?);let buffer = vec![0x12; 16384];
stream.get_mut().write_all(buffer.as_ref())?;letmut echo = vec![0u8; 16384];letmut b = BufReader::new(stream);
b.read(&mut echo)?;letmut i = 0;for v in echo {if v == 0u8{println!("index: {:?}", i);break;}
i += 1;}Ok(())}
The text was updated successfully, but these errors were encountered:
rust-sgx/examples/usercall-extension/app/src/main.rs
Lines 5 to 12 in b6f0262
Description:
I encountered an issue with the input handling in the system using the following test code. The problem occurs under the following scenarios:
buffer
length exceeds 8192 bytes, the read operation only retrieves 8192 bytes of data.buffer
exceeds 24576 bytes, the program enters an infinite wait with no output and does not exit.Steps to Reproduce:
Use the provided test code.
buffer
length of 16384 bytes.buffer
length to exceed 24576 bytes.Expected Behavior:
buffer
andecho
should be equal, meaning the data written should match the data read without any loss or corruption.Test Code:
The text was updated successfully, but these errors were encountered: