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

bad offset error #11

Open
davidelbert opened this issue Jun 14, 2024 · 3 comments
Open

bad offset error #11

davidelbert opened this issue Jun 14, 2024 · 3 comments
Assignees

Comments

@davidelbert
Copy link

Hi. Thanks for this invaluable fix! Unfortunately, it is not working for me. I have three zip files created by OneDrive that won't unzip and when I run:

perl fix-onedrive-zip filename1.zip

I get the error:

Error: bad offset 0xBAC696C1 at end of 'filename1.zip'

Apologies if I missed an explanation of this in the ReadMe, but am not sure if there is a way to resolve this.

@pmqs pmqs self-assigned this Jun 14, 2024
@pmqs
Copy link
Owner

pmqs commented Jun 14, 2024

Hey David

the Fix-OneDrive-Zip script expects to see a well-formed zip file that has one very specific item of metadata incorrect. Your zip files appear to have a different metadata issue., so it would likely make things worse if my script ignored this problem.

You could try the Strategies for recovering data section in my documentation to see if that helps.

If you are still stuck, and you need assistance, I need to understand more about what is wrong with the zip files. Could you try running another script of mine that dumps the metadata from a zip file. Download a copy of zipdetails and run this

perl zipdetails -v 'filename1.zip

If you have filenames in the zip file you'd rather not share,, include the --redact option, like this

perl zipdetails -v --redact  'filename1.zip

If the script fails, run this instead

perl zipdetails -v --walk  'filename1.zip

Be warned though, if you have a lot of files in these zipfiles the script may take a very long time to run. If the file is enormous, I'm most interested in the output near the end of the file -- post at least everything from the line that has END CENTRAL HEADER to the end of the file.

@tcaceresm
Copy link

I have a similar problem. Should I create a new Issue?

@pmqs
Copy link
Owner

pmqs commented Sep 20, 2024

You can use this issue. See if you can get the information I requested for your zip file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants