|
From: | Max Reitz |
Subject: | Re: [Qemu-stable] [Qemu-devel] [PATCH for-2.0 33/47] dmg: prevent out-of-bounds array access on terminator |
Date: | Sat, 29 Mar 2014 00:10:00 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 |
On 26.03.2014 13:05, Stefan Hajnoczi wrote:
When a terminator is reached the base for offsets and sectors is stored. The following records that are processed will use this base value. If the first record we encounter is a terminator, then calculating the base values would result in out-of-bounds array accesses. Don't do that. Signed-off-by: Stefan Hajnoczi <address@hidden> Signed-off-by: Kevin Wolf <address@hidden> --- block/dmg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Max Reitz <address@hidden>
[Prev in Thread] | Current Thread | [Next in Thread] |