Record Case Detail

Notes

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

Stderr

 pwd: /out/package
ppid: 3528
   1: WRITELN echo 123 > 1.txt
   2: WRITELN echo abc > > > >
   3: WRITELN echo abc > < 1.txt
   4: WRITELN echo abc > | grep abc
   5: WRITELN exit
exit: 0

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/p1_main.c:214:16: runtime error: index 10 out of bounds for type 'char *[10]'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /in/p1_main.c:214:16 in 
=================================================================
==3531==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7ffcb24f19f0 at pc 0x00000051bc91 bp 0x7ffcb24f1970 sp 0x7ffcb24f1968
WRITE of size 8 at 0x7ffcb24f19f0 thread T0
    #0 0x51bc90  (/out/package/mumsh_memory_check+0x51bc90)
    #1 0x5204c6  (/out/package/mumsh_memory_check+0x5204c6)
    #2 0x52974c  (/out/package/mumsh_memory_check+0x52974c)
    #3 0x7fa4bbd38b96  (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #4 0x41d199  (/out/package/mumsh_memory_check+0x41d199)

Address 0x7ffcb24f19f0 is located in stack of thread T0 at offset 112 in frame
    #0 0x51a1bf  (/out/package/mumsh_memory_check+0x51a1bf)

  This frame has 1 object(s):
    [32, 112) 'tmp' <== Memory access at offset 112 overflows this variable
HINT: this may be a false positive if your 

JOJ Answer

mumsh $ mumsh $ syntax error near unexpected token `>'
mumsh $ syntax error near unexpected token `<'
mumsh $ syntax error near unexpected token `|'
mumsh $ exit