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 $ 123 mumsh $ mumsh $ /in/read.h:160:32: runtime error: unsigned integer overflow: 0 - 1 cannot be represented in type 'unsigned long' SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /in/read.h:160:32 in /in/read.h:160:9: runtime error: addition of unsigned offset to 0x619000000a80 overflowed to 0x619000000a7f SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /in/read.h:160:9 in ================================================================= ==13932==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x619000000a7f at pc 0x000000519680 bp 0x7ffd9da69e50 sp 0x7ffd9da69e48 READ of size 1 at 0x619000000a7f thread T0 #0 0x51967f (/out/package/mumsh_memory_check+0x51967f) #1 0x5204b5 (/out/package/mumsh_memory_check+0x5204b5) #2 0x7f13268d4b96 (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) #3 0x41d4b9 (/out/package/mumsh_memory_check+0x41d4b9) 0x619000000a7f is located 1 bytes to the left of 1024-byte region [0x619000000a80,0x619000000e80) allocated by thread T0 here:
JOJ Answer
mumsh $ 123 mumsh $ mumsh $ exit