Record Case Detail

Notes

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

Stderr

$ ./l5_memory_check rand_char*.txt dec
=================================================================
==7539==ERROR: AddressSanitizer: heap-use-after-free on address 0x61d000000080 at pc 0x00000049950c bp 0x7ffdd7e882d0 sp 0x7ffdd7e87a80
READ of size 2 at 0x61d000000080 thread T0
    #0 0x49950b  (/out/package/l5_memory_check+0x49950b)
    #1 0x515c6e  (/out/package/l5_memory_check+0x515c6e)
    #2 0x7fc8d12ee2a1  (/lib/x86_64-linux-gnu/libc.so.6+0x422a1)
    #3 0x7fc8d12ee21f  (/lib/x86_64-linux-gnu/libc.so.6+0x4221f)
    #4 0x7fc8d12ee21f  (/lib/x86_64-linux-gnu/libc.so.6+0x4221f)
    #5 0x7fc8d12ee21f  (/lib/x86_64-linux-gnu/libc.so.6+0x4221f)
    #6 0x7fc8d12ee21f  (/lib/x86_64-linux-gnu/libc.so.6+0x4221f)
    #7 0x7fc8d12ee21f  (/lib/x86_64-linux-gnu/libc.so.6+0x4221f)
    #8 0x7fc8d12ee21f  (/lib/x86_64-linux-gnu/libc.so.6+0x4221f)
    #9 0x7fc8d12ee21f  (/lib/x86_64-linux-gnu/libc.so.6+0x4221f)
    #10 0x7fc8d12ee21f  (/lib/x86_64-linux-gnu/libc.so.6+0x4221f)
    #11 0x7fc8d12ee21f  (/lib/x86_64-lin

Hints

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

However, the main problem you meet now is Memory Exceeded. 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

Program exit with non zero value 1!

JOJ Answer

Correct!