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 $ /in/redirection.c:96:44: runtime error: unsigned integer overflow: 0 - 1 cannot be represented in type 'unsigned long' SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /in/redirection.c:96:44 in ================================================================= ==7292==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6020000001b1 at pc 0x00000051b938 bp 0x7ffd0cd04150 sp 0x7ffd0cd04148 READ of size 1 at 0x6020000001b1 thread T0 #0 0x51b937 (/out/package/mumsh_memory_check+0x51b937) #1 0x51b084 (/out/package/mumsh_memory_check+0x51b084) #2 0x51ce29 (/out/package/mumsh_memory_check+0x51ce29) #3 0x518021 (/out/package/mumsh_memory_check+0x518021) #4 0x51571a (/out/package/mumsh_memory_check+0x51571a) #5 0x7fd44f5acb96 (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) #6 0x41d299 (/out/package/mumsh_memory_check+0x41d299) 0x6020000001b1 is located 0 bytes to the right of 1-byte region [0x6020000001b0,0x6020000001b1) allocated by thread T0 here: #0 0
JOJ Answer
mumsh $ mumsh $ mumsh $ mumsh $ HI GOD mumsh $ mumsh $ exit