Re: [Qemu-devel] [PATCH 05/10] block/dmg: validate chunk size to avoid overflow

2015-01-02 Thread John Snow
On 12/27/2014 10:01 AM, Peter Wu wrote: Previously the chunk size was not checked, allowing for a large memory allocation. This patch checks whether the chunks size is within the resource fork length. Signed-off-by: Peter Wu --- block/dmg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletio

[Qemu-devel] [PATCH 05/10] block/dmg: validate chunk size to avoid overflow

2014-12-27 Thread Peter Wu
Previously the chunk size was not checked, allowing for a large memory allocation. This patch checks whether the chunks size is within the resource fork length. Signed-off-by: Peter Wu --- block/dmg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/dmg.c b/block/dmg.c i