Re: [Qemu-devel] [PATCH v3 0/3] dmg: fixing reading in dmg

2019-01-04 Thread Stefan Hajnoczi
On Thu, Jan 03, 2019 at 07:46:57PM +0800, yuchenlin wrote: > There are two bugs in dmg reading. > > First, it may hang in binary search. this problem is solved by patch 1. > Second, because of lacking zero chunk table, reading zero sector will > return EIO. this problem is solved by patch 2 and 3.

[Qemu-devel] [PATCH v3 0/3] dmg: fixing reading in dmg

2019-01-03 Thread yuchenlin
There are two bugs in dmg reading. First, it may hang in binary search. this problem is solved by patch 1. Second, because of lacking zero chunk table, reading zero sector will return EIO. this problem is solved by patch 2 and 3. Thanks v2 -> v3: * fix potential overflow (Thanks Stefan) * add Re