Record Case Detail

Notes

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

Stderr

 pwd: /out/package
ppid: 7798
   1: WRITELN echo HI > a.txt
   2: WRITELN echo GOD    >b.txt
   3: WRITELN cat a.txt b.txt >> c.txt
   4: WRITELN cat c.txt
   5: WRITELN rm a.txt b.txt c.txt
   6: 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 $ =================================================================
==7799==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x60b000000574 at pc 0x00000049973c bp 0x7ffc5cf19540 sp 0x7ffc5cf18cf0
READ of size 101 at 0x60b000000574 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 0x7f6c0d877b96  (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #5 0x41cc99  (/out/package/mumsh_memory_check+0x41cc99)

0x60b000000574 is located 0 bytes to the right of 100-byte region [0x60b000000510,0x60b000000574)
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 0x7f6c0d877b96  (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

SUMMARY: AddressSanit

JOJ Answer

mumsh $ mumsh $ mumsh $ mumsh $ HI
GOD
mumsh $ mumsh $ exit