We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f75d9fc commit cf5efdbCopy full SHA for cf5efdb
src/hyperlight_guest_bin/src/lib.rs
@@ -146,14 +146,14 @@ fn panic(info: &core::panic::PanicInfo) -> ! {
146
147
#[inline(always)]
148
fn _panic_handler(info: &core::panic::PanicInfo) -> ! {
149
- // stack allocate a 256-byte message buffer.
150
- let mut panic_buf = String::<256>::new();
+ // stack allocate a 512-byte message buffer.
+ let mut panic_buf = String::<512>::new();
151
let write_res = write!(panic_buf, "{}\0", info);
152
if write_res.is_err() {
153
unsafe {
154
abort_with_code_and_message(
155
&[ErrorCode::UnknownError as u8],
156
- c"panic: message format failed".as_ptr(),
+ c"panic: message format failed (limit: 512 bytes)".as_ptr(),
157
)
158
}
159
0 commit comments