You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I encountered a SEGV crash when invoking Document::InsertColumn function to insert a column into a CSV document. The crash occurs during the itRow->insert() invocation (line 844), where itRow vector has a length of 1, while the insert index dataColumnIdx has a value of 2, causing an out-of-bound write access. The related source code is shown below:
Hi @pvz122 - thanks for this report too, I haven't tried reproducing the problem yet, but I believe it would have a similar root cause as #186 - and I anticipate the fix will be similar (throwing an exception). I will look into preparing a fix, but it might take a little while (just to adjust the expectations).
Description:
Hi, I encountered a
SEGV
crash when invokingDocument::InsertColumn
function to insert a column into a CSV document. The crash occurs during theitRow->insert()
invocation (line 844), whereitRow
vector has a length of1
, while the insert indexdataColumnIdx
has a value of2
, causing an out-of-bound write access. The related source code is shown below:rapidcsv/src/rapidcsv.h
Lines 839 to 846 in 083851d
The ASan report is:
This crash appears to be a bug of the library and can cause security issues.
How to reproduce it:
The PoC program is:
And the PoC CSV file can be downloaded at here.
The build command is like:
Environment:
The text was updated successfully, but these errors were encountered: