Record Case Detail

Notes

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

Stderr

 pwd: /out/package
ppid: 3079
   1: WRITELN echo 123
   2: WRITELN 
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 $ 123
mumsh $ =================================================================
==3080==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x619000000f7f at pc 0x000000524ebc bp 0x7fff0498b2f0 sp 0x7fff0498b2e8
READ of size 1 at 0x619000000f7f thread T0
    #0 0x524ebb  (/out/package/mumsh_memory_check+0x524ebb)
    #1 0x52c393  (/out/package/mumsh_memory_check+0x52c393)
    #2 0x52c7a3  (/out/package/mumsh_memory_check+0x52c7a3)
    #3 0x7ff8f6c5bb96  (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #4 0x41d159  (/out/package/mumsh_memory_check+0x41d159)

0x619000000f7f is located 1 bytes to the left of 1024-byte region [0x619000000f80,0x619000001380)
allocated by thread T0 here:
    #0 0x4dd010  (/out/package/mumsh_memory_check+0x4dd010)
    #1 0x52bcb7  (/out/package/mumsh_memory_check+0x52bcb7)
    #2 0x52c380  (/out/package/mumsh_memory_check+0x52c380)
    #3 0x52c7a3  (/out/package/mumsh_memory_check+0x52c7a3)
    #4 0x7ff8f6c5bb96  (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

SUMMARY: AddressSan

JOJ Answer

mumsh $ 123
mumsh $ mumsh $ exit