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 $ 123 cat: '|': No such file or directory cat: cat: No such file or directory cat: '>>': No such file or directory 321 mumsh $ /in/read.c:16:27: runtime error: unsigned integer overflow: 0 - 1 cannot be represented in type 'unsigned long' SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /in/read.c:16:27 in /in/read.c:16:5: runtime error: addition of unsigned offset to 0x7ffd5b219420 overflowed to 0x7ffd5b21941f SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /in/read.c:16:5 in ================================================================= ==94420==ERROR: AddressSanitizer: stack-buffer-underflow on address 0x7ffd5b21941f at pc 0x00000051bdde bp 0x7ffd5b219370 sp 0x7ffd5b219368 WRITE of size 1 at 0x7ffd5b21941f thread T0 #0 0x51bddd (/out/package/mumsh_memory_check+0x51bddd) #1 0x515571 (/out/package/mumsh_memory_check+0x515571) #2 0x7f9544219b96 (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) #3 0x41ce79 (/out/package/mumsh_memory_check+0x41ce79) Address
JOJ Answer
mumsh $ mumsh $ mumsh $ mumsh $ 123 mumsh $ 321 123 mumsh $ 1.txt 2.txt driver mumsh mumsh_memory_check mumsh $ exit