Record Case Detail

Notes

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

Stderr

 pwd: /out/package
ppid: 4449
   1: WRITELN "echo" 'abc def' "xm""fxh"
   2: WRITELN exit
exit: 1

Hints

Your answer may be identical to the JOJ answer in the first several lines.

However, the main problem you meet now is Runtime Error. And the exit code of your program is 1, which should be 0.

Please double check your code to solve this problem and try again.

Your Answer

mumsh $ >>=================================================================
==4450==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x619000000480 at pc 0x000000517d54 bp 0x7ffc93f0deb0 sp 0x7ffc93f0dea8
WRITE of size 1 at 0x619000000480 thread T0
    #0 0x517d53  (/out/package/mumsh_memory_check+0x517d53)
    #1 0x518e20  (/out/package/mumsh_memory_check+0x518e20)
    #2 0x519780  (/out/package/mumsh_memory_check+0x519780)
    #3 0x7f0a8b28bb96  (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #4 0x41d019  (/out/package/mumsh_memory_check+0x41d019)

0x619000000480 is located 0 bytes to the right of 1024-byte region [0x619000000080,0x619000000480)
allocated by thread T0 here:
    #0 0x4dced0  (/out/package/mumsh_memory_check+0x4dced0)
    #1 0x518d9d  (/out/package/mumsh_memory_check+0x518d9d)
    #2 0x519780  (/out/package/mumsh_memory_check+0x519780)
    #3 0x7f0a8b28bb96  (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

SUMMARY: AddressSanitizer: heap-buffer-overflow (/out/package/mumsh_memory_check+0x517d

JOJ Answer

mumsh $ abc def xmfxh
mumsh $ exit