Record Case Detail

Notes

This function is in beta test. Please help improve it in the issues here.

Stderr

 pwd: /out/package
ppid: 99092
   1: WRITELN echo 321 > 1.txt
   2: WRITELN <
   3: WRITELN 1.txt cat
   4: WRITELN ls
   5: WRITELN exit

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

=================================================================
==99093==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x61900000007f at pc 0x0000005165ca bp 0x7ffc002d2370 sp 0x7ffc002d2368
READ of size 1 at 0x61900000007f thread T0
    #0 0x5165c9  (/out/package/mumsh_memory_check+0x5165c9)
    #1 0x515575  (/out/package/mumsh_memory_check+0x515575)
    #2 0x7fb4c6375b96  (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #3 0x41cdd9  (/out/package/mumsh_memory_check+0x41cdd9)

0x61900000007f is located 1 bytes to the left of 1024-byte region [0x619000000080,0x619000000480)
allocated by thread T0 here:
    #0 0x4dcc90  (/out/package/mumsh_memory_check+0x4dcc90)
    #1 0x5151c0  (/out/package/mumsh_memory_check+0x5151c0)
    #2 0x7fb4c6375b96  (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

SUMMARY: AddressSanitizer: heap-buffer-overflow (/out/package/mumsh_memory_check+0x5165c9) 
Shadow bytes around the buggy address:
  0x0c327fff7fb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0c327fff7fc0: 00 

JOJ Answer

mumsh $ mumsh $ > 321
mumsh $ 1.txt
driver
mumsh
mumsh_memory_check
mumsh $ exit