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 $ ================================================================= ==63017==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x603000000028 at pc 0x000000516cc7 bp 0x7ffdff057770 sp 0x7ffdff057768 READ of size 8 at 0x603000000028 thread T0 #0 0x516cc6 (/out/package/mumsh_memory_check+0x516cc6) #1 0x516f03 (/out/package/mumsh_memory_check+0x516f03) #2 0x7f20c39e3b96 (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) #3 0x41cc19 (/out/package/mumsh_memory_check+0x41cc19) 0x603000000028 is located 0 bytes to the right of 24-byte region [0x603000000010,0x603000000028) allocated by thread T0 here: #0 0x4dcad0 (/out/package/mumsh_memory_check+0x4dcad0) #1 0x517051 (/out/package/mumsh_memory_check+0x517051) #2 0x515334 (/out/package/mumsh_memory_check+0x515334) #3 0x516f03 (/out/package/mumsh_memory_check+0x516f03) #4 0x7f20c39e3b96 (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) SUMMARY: AddressSanitizer: heap-buffer-overflow (/out/package/mumsh_memory_check+0x516cc6)
JOJ Answer
mumsh $ 123 abc mumsh $ exit