multipart-parser-c icon indicating copy to clipboard operation
multipart-parser-c copied to clipboard

fix: Fix weak condition of emit s_part_data

Open twxjyg opened this issue 7 years ago • 0 comments

If the file content contains char of CR, the parse progress may be stop in middle of file content. So, the condition of emit s_part_data callback is weak, I fix the problem by add a condition of [i >= len -p->boundary_length -6], len is the body length, 6 is other char number that remainning of body content length.

twxjyg avatar Aug 18 '16 12:08 twxjyg