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 $ ================================================================= ==82159==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x619000000981 at pc 0x000000499f0c bp 0x7ffef6ef36d0 sp 0x7ffef6ef2e80 READ of size 1026 at 0x619000000981 thread T0 #0 0x499f0b (/out/package/mumsh_memory_check+0x499f0b) #1 0x5168f8 (/out/package/mumsh_memory_check+0x5168f8) #2 0x51a7b1 (/out/package/mumsh_memory_check+0x51a7b1) #3 0x527b05 (/out/package/mumsh_memory_check+0x527b05) #4 0x7f5fd8362b96 (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) #5 0x41d469 (/out/package/mumsh_memory_check+0x41d469) 0x619000000981 is located 0 bytes to the right of 1025-byte region [0x619000000580,0x619000000981) allocated by thread T0 here: #0 0x4dd320 (/out/package/mumsh_memory_check+0x4dd320) #1 0x51614d (/out/package/mumsh_memory_check+0x51614d) #2 0x51a7b1 (/out/package/mumsh_memory_check+0x51a7b1) #3 0x527b05 (/out/package/mumsh_memory_check+0x527b05) #4 0x7f5fd8362b96 (/lib/x86
JOJ Answer
mumsh $ mumsh $ mumsh $ 123 mumsh $ 123 mumsh $ 1.txt 2.txt driver mumsh mumsh_memory_check mumsh $ exit