Review the splitLines() API to avoid allocating zero bytes. (#638)
Make it systematic to first count the lines and then allocate the right amount of memory for the array of pointers to the start of each line, and make sure we don't try and allocate a zero-size array, which can lead to "corrupted size vs. prev_size" errors at run-time.
parent
4013f969
Please register or sign in to comment