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 $ /in/Calls.c:155:22: runtime error: null pointer passed as argument 1, which is declared to never be null /usr/include/unistd.h:582:14: note: nonnull attribute specified here SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /in/Calls.c:155:22 in AddressSanitizer:DEADLYSIGNAL ================================================================= ==4472==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f632b4224b0 bp 0x7ffc016888d0 sp 0x7ffc01688840 T0) ==4472==The signal is caused by a READ memory access. ==4472==Hint: address points to the zero page. #0 0x7f632b4224af (/lib/x86_64-linux-gnu/libc.so.6+0xe54af) #1 0x5198b5 (/out/package/mumsh_memory_check+0x5198b5) #2 0x51a3e2 (/out/package/mumsh_memory_check+0x51a3e2) #3 0x51a6c6 (/out/package/mumsh_memory_check+0x51a6c6) #4 0x51635e (/out/package/mumsh_memory_check+0x51635e) #5 0x7f632b35eb96 (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) #6 0x41d499 (/out/package/mumsh_memory_check+0x41d499) Addr
JOJ Answer
mumsh $ mumsh $ 123 | mumsh $ 1.txt driver mumsh mumsh_memory_check mumsh $ exit