Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix SepParser*s buffer overrun bug when column count is equal to internal capacity and new row after #109

Merged
merged 13 commits into from
Mar 10, 2024
Prev Previous commit
Next Next commit
fix refactor extra count
  • Loading branch information
nietras committed Mar 10, 2024
commit d9ed0b6deab8acdfc3451716eac244c64bebf91d
2 changes: 1 addition & 1 deletion src/Sep/SepReader.cs
Original file line number Diff line number Diff line change
@@ -325,7 +325,7 @@ bool EnsureInitializeAndReadData(bool endOfFile)
{
if (nothingLeftToRead)
{
if ((_parsingRowColEndsOrInfosStartIndex + _parsingRowColCount + ColEndsOrInfosExtraEndCount) >= (GetColInfosLength() - ColEndsOrInfosExtraEndCount))
if ((_parsingRowColEndsOrInfosStartIndex + _parsingRowColCount + ColEndsOrInfosExtraEndCount) >= GetColInfosLength())
{
DoubleColInfosCapacityCopyState();
}
Loading