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 $ /in/main.c:30:25: runtime error: unsigned integer overflow: 0 - 1 cannot be represented in type 'unsigned long' SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /in/main.c:30:25 in /in/main.c:30:5: runtime error: index 18446744073709551615 out of bounds for type 'char [2048]' SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /in/main.c:30:5 in /in/main.c:30:5: runtime error: addition of unsigned offset to 0x7ffe59702f60 overflowed to 0x7ffe59702f5f SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /in/main.c:30:5 in ================================================================= ==48852==ERROR: AddressSanitizer: stack-buffer-underflow on address 0x7ffe59702f5f at pc 0x00000051c9d2 bp 0x7ffe59702f30 sp 0x7ffe59702f28 WRITE of size 1 at 0x7ffe59702f5f thread T0 #0 0x51c9d1 (/out/package/mumsh_memory_check+0x51c9d1) #1 0x7fe27f529b96 (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) #2 0x41d2d9 (/out/package/mumsh_memory_check+0x41d2d9) Address 0x7ffe59702f
JOJ Answer
mumsh $ mumsh $ mumsh $ 123 mumsh $ 123 mumsh $ 1.txt 2.txt driver mumsh mumsh_memory_check mumsh $ exit