vdfuse fails on extended partitions

Bug #759988 reported by Dave Vasilevsky
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
virtualbox-ose (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: virtualbox-ose

When attempting to use vdfuse to mount a .vdi containing extended partitions, it fails with "Invalid EBR signature found on image".

To reproduce:
- Download attached overflow.vdi.xz, decompress with 'xz -d overflow.vdi.xz'
- Try to mount it: 'mkdir mnt; vdfuse -f overflow.vdi mnt'
- Error is printed and vdfuse fails

The error occurs because in vdfuse.c initialisePartitionTable() line 430, the read is offset by EBR_START, but the struct EBRentry already contains padding to take care of that. Also on line 444, uOffset should be the EBR offset in bytes, but it is assigned ebr.chain.offset, which is expressed in sectors.

I shall attach a patch to fix these bugs.

Tags: patch

Related branches

Revision history for this message
Dave Vasilevsky (djvasi) wrote :
Revision history for this message
Dave Vasilevsky (djvasi) wrote :
tags: added: patch
Revision history for this message
Felix Geyer (debfx) wrote :

Fixed in virtualbox 4.0.8-dfsg-2ubuntu1

Changed in virtualbox-ose (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.