Record Case Detail

Notes

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

Stderr

 pwd: /out/package
ppid: 82612
   1: WRITELN head -10 < /dev/urandom | cat > /dev/null
   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 $ =================================================================
==82614==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6140000003d0 at pc 0x000000515a81 bp 0x7fff52aac280 sp 0x7fff52aac278
READ of size 8 at 0x6140000003d0 thread T0
=================================================================
==82615==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6140000005d0 at pc 0x000000515a81 bp 0x7fff52aac180 sp 0x7fff52aac178
READ of size 8 at 0x6140000005d0 thread T0
    #0 0x515a80  (/out/package/mumsh_memory_check+0x515a80)
    #1 0x515dc2  (/out/package/mumsh_memory_check+0x515dc2)
    #2 0x516dad  (/out/package/mumsh_memory_check+0x516dad)
    #3 0x5172f9  (/out/package/mumsh_memory_check+0x5172f9)
    #4 0x7f48ad135b96  (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #5 0x41cd09  (/out/package/mumsh_memory_check+0x41cd09)

0x6140000003d0 is located 0 bytes to the right of 400-byte region [0x614000000240,0x6140000003d0)
    #0 0x515a80  (/out/package/mumsh_memory_check+0x515a80

JOJ Answer

mumsh $ mumsh $ exit