Notes
This function is in beta test. Please help improve it in the issues
here.
Hints
Your answer may be identical to the JOJ answer in the first several lines.
However, the main problem you meet now is Runtime Error. And the exit code of your program is 1, which should be 0.
Please double check your code to solve this problem and try again.
Your Answer
mumsh $ AddressSanitizer:DEADLYSIGNAL ================================================================= AddressSanitizer:DEADLYSIGNAL ================================================================= ==31887==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x0000004b209b bp 0x7ffe08646c50 sp 0x7ffe086463c0 T0) ==31888==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x0000004b209b bp 0x7ffe08646c50 sp 0x7ffe086463c0 T0) ==31887==The signal is caused by a READ memory access. ==31888==The signal is caused by a READ memory access. ==31888==Hint: address points to the zero page. ==31887==Hint: address points to the zero page. #0 0x4b209a (/out/package/mumsh_memory_check+0x4b209a) #1 0x515ee1 (/out/package/mumsh_memory_check+0x515ee1) #2 0x517525 (/out/package/mumsh_memory_check+0x517525) #3 0x51707e (/out/package/mumsh_memory_check+0x51707e) #4 0x517629 (/out/package/mumsh_memory_check+0x517629) #5 0x51759d (/out/package/mumsh_memory_check+0x51
JOJ Answer
mumsh $ mumsh $ success mumsh $ exit