Steps to reproduce
- Have a .txt.bz2 file that has more header columns than actual values
Example:
| first_name | last_name | middle_name |
| John | Jones | |
Expected behavior
When running BZip2.Decompress(fileToDecompressAsStream, decompressedStream, true);, it should obviously be writing the data from the .bz2 file to the .txt file.
Actual behavior
I'm getting an error stating Index was outside the bounds of the array
I know that this issue is more of a "bad data" problem, rather than a problem with SharpZipLib. However, I was hoping you could help with finding a solution. Ideally, I would like to decompress the .bz2 file, and either remove the extra header column or give all the rows a NULL value. But I can't find a way to do this. Any help you could provide would be very much appreciated!
Version of SharpZipLib
1.2.0
Obtained from (only keep the relevant lines)
- Package installed using NuGet
Steps to reproduce
Example:
| first_name | last_name | middle_name |
| John | Jones | |
Expected behavior
When running
BZip2.Decompress(fileToDecompressAsStream, decompressedStream, true);, it should obviously be writing the data from the.bz2file to the.txtfile.Actual behavior
I'm getting an error stating
Index was outside the bounds of the arrayI know that this issue is more of a "bad data" problem, rather than a problem with SharpZipLib. However, I was hoping you could help with finding a solution. Ideally, I would like to decompress the .bz2 file, and either remove the extra header column or give all the rows a
NULLvalue. But I can't find a way to do this. Any help you could provide would be very much appreciated!Version of SharpZipLib
1.2.0
Obtained from (only keep the relevant lines)