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

Investigate "XVC-MDU" block #8

Open
emoose opened this issue Mar 2, 2019 · 3 comments
Open

Investigate "XVC-MDU" block #8

emoose opened this issue Mar 2, 2019 · 3 comments

Comments

@emoose
Copy link
Owner

emoose commented Mar 2, 2019

Newly added kind of block located just before hash table begins, seems to store 1 byte for each XVC region in the image, some places in xvdd.sys call this area the "presence map", is apparently used to create the "XCT", unsure what any of that means though..

My guess is the byte indicates the presence of the region, I've only seen the value of 3 used so far, so I guess 3 must mean the region is present? Other values might mean the region is missing/being downloaded/???

Not sure if this area is hashed/signed at all, after the NumMDUBlocks field in the header is a 0x10 array of bytes that seem filled with data (was formerly unused), could be a hash, but haven't been able to find how to make a hash that matches (also haven't seen any code in xvdd.sys that actually checks that 0x10 array...)

@emoose
Copy link
Owner Author

emoose commented Mar 20, 2019

Extracted definitions from xvdutil, now xvdtool can read this block but haven't implemented writing yet, so leaving this issue open for now.

@tuxuser
Copy link
Collaborator

tuxuser commented Mar 30, 2019

Solved by #20

@tuxuser tuxuser closed this as completed Mar 30, 2019
@emoose
Copy link
Owner Author

emoose commented Mar 30, 2019

Well #20 adds new mutable data, but atm there's no way for us to edit existing data and then write out the edited data... should probably leave this open till we have that (something like that would also be required for save_new_xvd I guess)

@emoose emoose reopened this Mar 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants