Skip to content

Conversation

@Millefeuille42
Copy link

vhd-util scan can crash when ran against a VHD with a corrupt footer.

Happens when the footer reports a VHD type that should have a parent (like HD_TYPE_DIFF) while having none, causing the segfault.

This fix also escalates the error in vhd_util_scan_get_volume_parent
which was not done before.

vhd-util scan can crash when ran against a VHD with a corrupt footer.

Happens when the footer reports a VHD type that should have a parent
(like HD_TYPE_DIFF) while having none, causing the segfault.

Signed-off-by: Mathieu Labourier <mathieu.labourier@vates.tech>
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.

2 participants