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 @dgrunwald, I took a look at the code. It first looked like a minor fix to the ZipFile.cs file. Whereby, in the function FindExistingUpdate(ZipEntry entry) in addition to checking if the transformed-file-name is present in updateIndex_, we could just also check present of transformed-folder-name. Please refer to https://gist.github.com/sri-prasanna/8874407 to see what I mean. After adding this, the folder is correctly identified to be present in the updateIndex_. But, the program still fails at a later stage.
In the CopyEntryDirect method, the nameLength and extraLength variables are populated. For a test zip file (which contained one empty folder and one text file), these two variables come to have a very large number. Much larger than the actual size of the file. Resulting in sourcePosition being a very large value. So, the program fails at CopyEntryDataDirect method. This is strange. Are you able to shed some light on where I could look at, to progress w/ my analysis? Thanks.
Hi. I ran tests with some more zip files (All tests on Windows 7). For some zip files, the nameLength and extraLength variables have expected values. And for some zip files, these two values are really large and cause failure at CopyEntryDataDirect method..
Activity
sri-prasanna commentedon Feb 8, 2014
Hi @dgrunwald, I took a look at the code. It first looked like a minor fix to the
ZipFile.csfile. Whereby, in the functionFindExistingUpdate(ZipEntry entry)in addition to checking if the transformed-file-name is present inupdateIndex_, we could just also check present of transformed-folder-name. Please refer to https://gist.github.com/sri-prasanna/8874407 to see what I mean. After adding this, the folder is correctly identified to be present in theupdateIndex_. But, the program still fails at a later stage.In the
CopyEntryDirectmethod, thenameLengthandextraLengthvariables are populated. For a test zip file (which contained one empty folder and one text file), these two variables come to have a very large number. Much larger than the actual size of the file. Resulting insourcePositionbeing a very large value. So, the program fails atCopyEntryDataDirectmethod. This is strange. Are you able to shed some light on where I could look at, to progress w/ my analysis? Thanks.sri-prasanna commentedon Feb 8, 2014
Hi. I ran tests with some more zip files (All tests on Windows 7). For some zip files, the
nameLengthandextraLengthvariables have expected values. And for some zip files, these two values are really large and cause failure atCopyEntryDataDirectmethod..Let me know if you have some suggestions..
Numpsy commentedon Oct 11, 2020
Is the deleting of folder entries all fixed now?
piksel commentedon Oct 13, 2020
It should be. Otherwise a new ticket should be created anyway since the mentioned root cause here should at least not trigger it anymore.