|
From: | Paolo Bonzini |
Subject: | Re: [Qemu-devel] [PULL v2 22/45] ipmi: introduce a struct ipmi_sdr_compact |
Date: | Tue, 16 Feb 2016 08:45:33 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 |
On 06/02/2016 20:13, Michael S. Tsirkin wrote: > > - if (sdr[7] > MAX_SENSORS) { > + if (sdr->sensor_owner_number > MAX_SENSORS) { This is another off-by-one, it should have been >=. Same for all these occurrences later in the same file: hw/ipmi/ipmi_bmc_sim.c: if ((cmd[2] > MAX_SENSORS) || hw/ipmi/ipmi_bmc_sim.c: if ((cmd[2] > MAX_SENSORS) || hw/ipmi/ipmi_bmc_sim.c: if ((cmd[2] > MAX_SENSORS) || hw/ipmi/ipmi_bmc_sim.c: if ((cmd[2] > MAX_SENSORS) || hw/ipmi/ipmi_bmc_sim.c: if ((cmd[2] > MAX_SENSORS) || hw/ipmi/ipmi_bmc_sim.c: if ((cmd[2] > MAX_SENSORS) || hw/ipmi/ipmi_bmc_sim.c: if ((cmd[2] > MAX_SENSORS) || Thanks, Paolo > continue; > }
[Prev in Thread] | Current Thread | [Next in Thread] |