jianyuh / csv-parser-cplusplus

Automatically exported from code.google.com/p/csv-parser-cplusplus
GNU General Public License v3.0
0 stars 0 forks source link

Crash on empty fields #11

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create a file with empty cells
2. parse it and get rows
3.

What is the expected output? What do you see instead?
not a seg fault, a seg fault

What version of the product are you using? On what operating system?
Revision 26

Please provide any additional information below.
                const char line_final_char = field_starts_at[field_width ? field_width - 1 : 0];

for line 377 & 409 fixes this for me.

Original issue reported on code.google.com by colan...@gmail.com on 2 Jun 2015 at 9:42