[Pkg-virtualbox-devel] Bug#622659: virtualbox-ose-fuse: vdfuse fails to mount images with extended partitions

Dave Vasilevsky dave at vasilevsky.ca
Wed Apr 13 17:48:01 UTC 2011


Package: virtualbox-ose-fuse
Version: 4.0.4-dfsg-1
Severity: normal
Tags: patch

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.

(Reported from Ubuntu, but the same bug occurs in Debian)



-- System Information:
Debian Release: squeeze/sid
  APT prefers natty-updates
  APT policy: (500, 'natty-updates'), (500, 'natty-security'), (500, 'natty')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.38-8-generic (SMP w/1 CPU core)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
-------------- next part --------------
A non-text attachment was scrubbed...
Name: overflow.vdi.xz
Type: application/x-xz
Size: 1688 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-virtualbox-devel/attachments/20110413/19e93a41/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: overflow.vdi.xz
Type: application/x-xz
Size: 1688 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-virtualbox-devel/attachments/20110413/19e93a41/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vdfuse.patch
Type: text/x-c++
Size: 840 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-virtualbox-devel/attachments/20110413/19e93a41/attachment-0002.bin>


More information about the Pkg-virtualbox-devel mailing list