[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 5/6] spapr: fix possible Negative array index re
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH 5/6] spapr: fix possible Negative array index read |
Date: |
Thu, 3 Mar 2016 12:19:37 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 |
On 03/03/2016 10:43, Gonglei wrote:
> fix CID 1351391.
>
> Signed-off-by: Gonglei <address@hidden>
> ---
> hw/ppc/spapr.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
> index e9d4abf..57d19ab 100644
> --- a/hw/ppc/spapr.c
> +++ b/hw/ppc/spapr.c
> @@ -2221,6 +2221,10 @@ static void spapr_machine_device_plug(HotplugHandler
> *hotplug_dev,
> if (*errp) {
> return;
> }
> + if (node < 0 || node >= MAX_NODES) {
> + error_setg(errp, "Invaild node %d", node);
> + return;
> + }
>
> /*
> * Currently PowerPC kernel doesn't allow hot-adding memory to
>
Reviewed-by: Paolo Bonzini <address@hidden>
- [Qemu-devel] [PATCH 2/6] sheepdog: fix possible resouce leak and out-of-bounds access, (continued)
[Qemu-devel] [PATCH 4/6] hostmem-file: fix memory leak, Gonglei, 2016/03/03
[Qemu-devel] [PATCH 3/6] spice: fix coverity complains, Gonglei, 2016/03/03
[Qemu-devel] [PATCH 5/6] spapr: fix possible Negative array index read, Gonglei, 2016/03/03
- Re: [Qemu-devel] [PATCH 5/6] spapr: fix possible Negative array index read,
Paolo Bonzini <=
[Qemu-devel] [PATCH 6/6] smbus: fix memory leak, Gonglei, 2016/03/03
[Qemu-devel] [PATCH 1/6] egl-helpers: fix possible resource leak, Gonglei, 2016/03/03