Record Case Detail

Notes

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

Stderr

 pwd: /out/package
ppid: 33464
   1: WRITELN >
   2: WRITELN 1.txt echo 123
   3: WRITELN cat 1.txt
   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

mumsh $ =================================================================
==33466==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7ffcf4fdd868 at pc 0x00000051b606 bp 0x7ffcf4fdb610 sp 0x7ffcf4fdb608
WRITE of size 8 at 0x7ffcf4fdd868 thread T0
    #0 0x51b605  (/out/package/mumsh+0x51b605)
    #1 0x51b6ce  (/out/package/mumsh+0x51b6ce)
    #2 0x516eef  (/out/package/mumsh+0x516eef)
    #3 0x515538  (/out/package/mumsh+0x515538)
    #4 0x7f699ba58b96  (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #5 0x41d0a9  (/out/package/mumsh+0x41d0a9)

Address 0x7ffcf4fdd868 is located in stack of thread T0 at offset 8616 in frame
    #0 0x51582f  (/out/package/mumsh+0x51582f)

  This frame has 3 object(s):
    [32, 132) 'buffer'
    [176, 8368) 'pipespace'
    [8624, 16816) 'command' <== Memory access at offset 8616 underflows this variable
HINT: this may be a false positive if your program uses some custom stack unwind mechanism or swapcontext
      (longjmp and C++ exceptions *are* supported)
SUMMARY: Addre

JOJ Answer

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