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

Header length verification correction #1

Merged
merged 1 commit into from
Dec 11, 2021
Merged

Conversation

corwin-of-amber
Copy link
Contributor

This has been noticed in vasi/qcow2-fuse#4.

The fix seems to alleviate the problem.

This is a cool and useful project! Please respond 🍰☺️

@vasi
Copy link
Owner

vasi commented Dec 11, 2021

Awesome, thanks!

@vasi vasi merged commit 0c95bad into vasi:master Dec 11, 2021
@niklasha
Copy link

Unfortunately, this fix is wrong. According to Qemu source and indeed QCOW2 specification (although not very explicit, but it is evident when reading on that header extensions are not part of the header struct) the header_length do not include the extensions. The fundamental problem is that the qcow2 crate does not handle "additional fields" at all. This is easily fixed.

I will soon submit a pull request to fix this properly for review.

@corwin-of-amber
Copy link
Contributor Author

I was indeed a bit doubtful -- thanks for digging deeper @niklasha 👍

@vasi
Copy link
Owner

vasi commented Feb 15, 2022

Thanks for looking into this!

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

Successfully merging this pull request may close these issues.

3 participants