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, you will still get Wrong Answer because the complete output may be longer and there might be errors in the future lines.
Please double check your code to solve this problem and try again.
Your Answer
mumsh $ mumsh $ /in/p1.c:117:20: runtime error: null pointer passed as argument 1, which is declared to never be null /usr/include/string.h:330:33: note: nonnull attribute specified here SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /in/p1.c:117:20 in AddressSanitizer:DEADLYSIGNAL ================================================================= ==40780==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f05d0b1d60e bp 0x000000531fc0 sp 0x7fff39f39f70 T0) ==40780==The signal is caused by a READ memory access. ==40780==Hint: address points to the zero page. #0 0x7f05d0b1d60d (/lib/x86_64-linux-gnu/libc.so.6+0x9e60d) #1 0x4b56e9 (/out/package/mumsh_memory_check+0x4b56e9) #2 0x517e46 (/out/package/mumsh_memory_check+0x517e46) #3 0x518557 (/out/package/mumsh_memory_check+0x518557) #4 0x519b34 (/out/package/mumsh_memory_check+0x519b34) #5 0x51a3bd (/out/package/mumsh_memory_check+0x51a3bd) #6 0x7f05d0aa0b96 (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
JOJ Answer
mumsh $ mumsh $ 123 mumsh $ 123 123 mumsh $ 1.txt driver mumsh mumsh_memory_check mumsh $ exit