Received: from eggs.gnu.org ([2001:4830:134:3::10]:41084) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aamdT-0001ZO-9t for qemu-devel@nongnu.org; Tue, 01 Mar 2016 10:54:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aamdP-0004nS-A1 for qemu-devel@nongnu.org; Tue, 01 Mar 2016 10:54:55 -0500 Received: from mail-qg0-x22d.google.com ([2607:f8b0:400d:c04::22d]:36685) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aamdP-0004nO-4K for qemu-devel@nongnu.org; Tue, 01 Mar 2016 10:54:51 -0500 Received: by mail-qg0-x22d.google.com with SMTP id u110so15859327qge.3 for ; Tue, 01 Mar 2016 07:54:50 -0800 (PST) From: Martin Galvan Date: Tue, 1 Mar 2016 12:54:28 -0300 Message-Id: <1456847681-4532-1-git-send-email-martin.galvan@tallertechnologies.com> Subject: [Qemu-devel] [PATCH v2 00/13] Use unsigned types for the 'len' argument of all memory read/write functions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, peter.maydell@linaro.org, pbonzini@redhat.com, edgar.iglesias@gmail.com, rth@twiddle.net, aurelien@aurel32.net, kraxel@redhat.com, blauwirbel@gmail.com, lcapitulino@redhat.com, armbru@redhat.com, afaerber@suse.de, dmitry@daynix.com Changes in v2: * Split the patch in several parts so the various submaintainers can look at it. When looking at address_space_read_continue I noticed the 'len' variable was a signed int, while it clearly should be a hwaddr or some other unsigned type. I started looking around and saw that this error had spread all over the code. I replaced the signed int by their unsigned counterparts as much as possible. At the suggestion of Paolo I'm splitting the patch in several parts according to the MAINTAINERS file. cpus.c | 2 +- disas/cris.c | 2 +- disas/s390.c | 3 ++- disas/sh4.c | 2 +- dma-helpers.c | 2 +- exec.c | 29 +++++++++++++++-------------- gdbstub.c | 3 ++- hw/arm/boot.c | 2 +- hw/arm/musicpal.c | 2 +- hw/audio/marvell_88w8618.c | 2 +- hw/audio/milkymist-ac97.c | 4 ++-- hw/dma/sun4m_iommu.c | 4 ++-- hw/net/dp8393x.c | 8 ++++---- hw/net/mcf_fec.c | 4 ++-- hw/net/vmware_utils.h | 17 +++++++++-------- hw/net/xgmac.c | 4 ++-- hw/s390x/virtio-ccw.c | 2 +- include/exec/cpu-all.h | 2 +- include/exec/cpu-common.h | 10 +++++----- include/exec/memory.h | 10 +++++----- include/hw/sparc/sun4m.h | 6 +++--- include/qom/cpu.h | 2 +- kvm-all.c | 2 +- monitor.c | 3 ++- scripts/coverity-model.c | 2 +- target-s390x/mmu_helper.c | 4 ++-- target-sparc/cpu.h | 2 +- target-sparc/mmu_helper.c | 6 +++--- 28 files changed, 73 insertions(+), 68 deletions(-) -- 2.7.1