Record Case Detail

Notes

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

Stderr

 pwd: /out/package
ppid: 662
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 $ =================================================================
==663==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x619000000459 at pc 0x000000499e5c bp 0x7fffef4a3730 sp 0x7fffef4a2ee0
READ of size 986 at 0x619000000459 thread T0
    #0 0x499e5b  (/out/package/mumsh_memory_check+0x499e5b)
    #1 0x516cd0  (/out/package/mumsh_memory_check+0x516cd0)
    #2 0x54d3e9  (/out/package/mumsh_memory_check+0x54d3e9)
    #3 0x7f9e95531b96  (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #4 0x41d3b9  (/out/package/mumsh_memory_check+0x41d3b9)

0x619000000459 is located 0 bytes to the right of 985-byte region [0x619000000080,0x619000000459)
allocated by thread T0 here:
    #0 0x4dd270  (/out/package/mumsh_memory_check+0x4dd270)
    #1 0x516c40  (/out/package/mumsh_memory_check+0x516c40)
    #2 0x54d3e9  (/out/package/mumsh_memory_check+0x54d3e9)
    #3 0x7f9e95531b96  (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

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

JOJ Answer

mumsh $ exit