Unverified Commit b207fd41 authored by Dimitri Fontaine's avatar Dimitri Fontaine Committed by GitHub
Browse files

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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment