File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
tests/rust_guests/simpleguest/src Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,6 @@ fn _panic_handler(info: &core::panic::PanicInfo) -> ! {
170170 }
171171
172172 let c_str_res = CStr :: from_bytes_with_nul ( panic_buf_guard. as_bytes ( ) ) ;
173-
174173 if c_str_res. is_err ( ) {
175174 unsafe {
176175 abort_with_code_and_message (
Original file line number Diff line number Diff line change @@ -1041,13 +1041,13 @@ pub extern "C" fn hyperlight_main() {
10411041 ) ;
10421042 register_function ( call_malloc_def) ;
10431043
1044- let call_malloc_and_panic_def = GuestFunctionDefinition :: new (
1044+ let exhaust_heap_def = GuestFunctionDefinition :: new (
10451045 "ExhaustHeap" . to_string ( ) ,
10461046 Vec :: new ( ) ,
10471047 ReturnType :: Int ,
10481048 exhaust_heap as usize ,
10491049 ) ;
1050- register_function ( call_malloc_and_panic_def ) ;
1050+ register_function ( exhaust_heap_def ) ;
10511051
10521052 let malloc_and_free_def = GuestFunctionDefinition :: new (
10531053 "MallocAndFree" . to_string ( ) ,
You can’t perform that action at this time.
0 commit comments