Re: [Qemu-devel] [PATCH v2 1/3] qcow2: Fix header extension size check

2014-11-25 Thread Max Reitz
On 2014-11-25 at 18:12, Kevin Wolf wrote: After reading the extension header, offset is incremented, but not checked against end_offset any more. This way an integer overflow could happen when checking whether the extension end is within the allowed range, effectively disabling the check. This p

[Qemu-devel] [PATCH v2 1/3] qcow2: Fix header extension size check

2014-11-25 Thread Kevin Wolf
After reading the extension header, offset is incremented, but not checked against end_offset any more. This way an integer overflow could happen when checking whether the extension end is within the allowed range, effectively disabling the check. This patch adds the missing check and a test case