<div dir="ltr">Hello,<br><br>While testing my following code:<br><a href="https://github.com/ik5/redis_client.fpc/blob/master/tests/test_parser.lpr#L166">https://github.com/ik5/redis_client.fpc/blob/master/tests/test_parser.lpr#L166</a><br>

<br>When I'm executing the code on the second item (that is suppose to be null in the protocol -> '$-1#13#10'),<br>the program crashes with the following message:<br>*** glibc detected *** redis_client/tests/test_parser: malloc(): memory corruption (fast): 0x0000000000750d50 ***<br>

<br>Using gdb to display the information seems that the following like:<br><a href="https://github.com/ik5/redis_client.fpc/blob/master/tests/test_parser.lpr#L85">https://github.com/ik5/redis_client.fpc/blob/master/tests/test_parser.lpr#L85</a> is the cause.<br>

It looks like accessing either tmps or ALine[j] is causing it.<br><br>I can't figure out the reason for it.<br><br>I'm using FPC 2.6.0 x86_64 on Archlinux.<br><br>What am I missing here ?<br><br>Thanks,<br>Ido<br>


</div>