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 $ mumsh $ mumsh $ parse.c:476:13: runtime error: null pointer passed as argument 1, which is declared to never be null /usr/include/string.h:122:14: note: nonnull attribute specified here SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior parse.c:476:13 in AddressSanitizer:DEADLYSIGNAL ================================================================= ==28773==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f28e8f31292 bp 0x7fffad26c4d0 sp 0x7fffad26bc48 T0) ==28773==The signal is caused by a WRITE memory access. ==28773==Hint: address points to the zero page. #0 0x7f28e8f31291 (/lib/x86_64-linux-gnu/libc.so.6+0x17d291) #1 0x4adb42 (/out/package/mumsh_memory_check+0x4adb42) #2 0x51bf78 (/out/package/mumsh_memory_check+0x51bf78) #3 0x51a505 (/out/package/mumsh_memory_check+0x51a505) #4 0x7f28e8dd5b96 (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) #5 0x41cde9 (/out/package/mumsh_memory_check+0x41cde9) AddressSanitizer can not provide additional
JOJ Answer
mumsh $ mumsh $ mumsh $ mumsh $ mumsh $ 123 mumsh $ 222 mumsh $ 222 321 mumsh $ 321 mumsh $ 1.txt 2.txt 3.txt 4.txt driver mumsh mumsh_memory_check mumsh $ exit