Record Case Detail

Notes

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

Stderr

 pwd: /out/package
ppid: 5364
   1: WRITELN echo 123>1.txt
   2: WRITELN echo 222 > 2.txt
   3: WRITELN echo 321   >    3.txt
   4: WRITELN echo 123>>1.txt
   5: WRITELN echo 2 > 1.txt
   6: WRITELN cat 1.txt
   7: WRITELN cat 1.txt >> 2.txt
   8: WRITELN cat 2.txt
   9: WRITELN rm 1.txt
  10: WRITELN rm 2.txt
  11: WRITELN rm  3.txt
  12: 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

mumsh $ mumsh $ mumsh $ =================================================================
==5365==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x60b000000834 at pc 0x00000049973c bp 0x7fffbbc7b360 sp 0x7fffbbc7ab10
READ of size 101 at 0x60b000000834 thread T0
    #0 0x49973b  (/out/package/mumsh_memory_check+0x49973b)
    #1 0x529bf5  (/out/package/mumsh_memory_check+0x529bf5)
    #2 0x52a5b4  (/out/package/mumsh_memory_check+0x52a5b4)
    #3 0x517ba1  (/out/package/mumsh_memory_check+0x517ba1)
    #4 0x7f66e0a92b96  (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #5 0x41cc99  (/out/package/mumsh_memory_check+0x41cc99)

0x60b000000834 is located 0 bytes to the right of 100-byte region [0x60b0000007d0,0x60b000000834)
allocated by thread T0 here:
    #0 0x4dcb50  (/out/package/mumsh_memory_check+0x4dcb50)
    #1 0x522ebf  (/out/package/mumsh_memory_check+0x522ebf)
    #2 0x517ad5  (/out/package/mumsh_memory_check+0x517ad5)
    #3 0x7f66e0a92b96  (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

SUMMARY: Addr

JOJ Answer

mumsh $ mumsh $ mumsh $ mumsh $ mumsh $ mumsh $ 2
mumsh $ mumsh $ 222
2
mumsh $ mumsh $ mumsh $ mumsh $ exit