We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
2.7.0
Please attach your original Excel File to help us reproduce the issue
CheckPosition throw exception. NPOI.Util.RuntimeException: 'Buffer overrun i=4;endIndex=125635;writeIndex=125633'
diff --git a/main/HSSF/Record/AutoFilter/AutoFilterRecord.cs b/main/HSSF/Record/AutoFilter/AutoFilterRecord.cs index 227a4b1e..c43b9ca6 100644 --- a/main/HSSF/Record/AutoFilter/AutoFilterRecord.cs +++ b/main/HSSF/Record/AutoFilter/AutoFilterRecord.cs @@ -130,10 +130,25 @@ protected override int DataSize { int recSize = 2 + 2 + 10 + 10; if (field_3_doper1.LengthOfString > 0) - recSize += 1 + field_5_rgch1.Length; + if (rgch1_multibyte) + { + recSize += 1 + (field_5_rgch1.Length * 2); // UTF16LE + } + else + { + recSize += 1 + field_5_rgch1.Length; + } if(field_4_doper2.LengthOfString > 0) - recSize += 1+ field_6_rgch2.Length; + if (rgch2_multibyte) + { + recSize += 1+ (field_6_rgch2.Length * 2); // UTF16LE + + } + else + { + recSize += 1+ field_6_rgch2.Length; + } return recSize; } }
The text was updated successfully, but these errors were encountered:
Book1.xls New serialize occur exception. Workbook.CloneSheet("Sheet1") Workbook.Write(New_File)
Sorry, something went wrong.
@htoyama You need to provide complete code
I already sent complete code. (1367#issue-2365803303)
No branches or pull requests
NPOI Version
2.7.0
File Type
Upload the Excel File
Please attach your original Excel File to help us reproduce the issue
Reproduce Steps
Issue Description
CheckPosition throw exception.
NPOI.Util.RuntimeException: 'Buffer overrun i=4;endIndex=125635;writeIndex=125633'
The text was updated successfully, but these errors were encountered: