Record Case Detail

Notes

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

Stderr

 pwd: /out/package
ppid: 19452
   1: WRITELN "echo" "123" "|" | cat > 1.txt
   2: WRITELN cat 1.txt
   3: WRITELN ls
   4: 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 $ =================================================================
==19456==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7ffc9ceab1b8 at pc 0x00000051afee bp 0x7ffc9ceaabf0 sp 0x7ffc9ceaabe8
WRITE of size 8 at 0x7ffc9ceab1b8 thread T0
    #0 0x51afed  (/out/package/mumsh_memory_check+0x51afed)
    #1 0x516c31  (/out/package/mumsh_memory_check+0x516c31)
    #2 0x517c97  (/out/package/mumsh_memory_check+0x517c97)
    #3 0x518439  (/out/package/mumsh_memory_check+0x518439)
    #4 0x518f31  (/out/package/mumsh_memory_check+0x518f31)
    #5 0x518f31  (/out/package/mumsh_memory_check+0x518f31)
    #6 0x518f31  (/out/package/mumsh_memory_check+0x518f31)
    #7 0x518fe1  (/out/package/mumsh_memory_check+0x518fe1)
    #8 0x5194d1  (/out/package/mumsh_memory_check+0x5194d1)
    #9 0x7f358e97cb96  (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #10 0x41d1f9  (/out/package/mumsh_memory_check+0x41d1f9)

Address 0x7ffc9ceab1b8 is located in stack of thread T0 at offset 88 in frame
    #0 0x51693f  (/out

JOJ Answer

mumsh $ mumsh $ 123 |
mumsh $ 1.txt
driver
mumsh
mumsh_memory_check
mumsh $ exit