|
From: | Max Reitz |
Subject: | Re: [Qemu-devel] [PATCH for-2.0 35/47] dmg: use appropriate types when reading chunks |
Date: | Sat, 29 Mar 2014 00:10:53 +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:
Use the right types instead of signed int: size_t new_size; This is a byte count for g_realloc() that is calculated from uint32_t and size_t values. uint32_t chunk_count; Use the same type as s->n_chunks, which is used together with chunk_count. This patch is a cleanup and does not fix bugs. Signed-off-by: Stefan Hajnoczi <address@hidden> Signed-off-by: Kevin Wolf <address@hidden> --- block/dmg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Reviewed-by: Max Reitz <address@hidden>
[Prev in Thread] | Current Thread | [Next in Thread] |