Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1160413 > unrolled thread

linux-4.1-rc7/drivers/irqchip/irq-renesas-intc-irqpin.c:418: array index used before limits check ?

Started byDavid Binderman <dcb314@hotmail.com>
First post2015-06-08 13:20 +0200
Last post2015-06-08 13:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  linux-4.1-rc7/drivers/irqchip/irq-renesas-intc-irqpin.c:418: array  index used before limits check ? David Binderman <dcb314@hotmail.com> - 2015-06-08 13:20 +0200

#1160413 — linux-4.1-rc7/drivers/irqchip/irq-renesas-intc-irqpin.c:418: array index used before limits check ?

FromDavid Binderman <dcb314@hotmail.com>
Date2015-06-08 13:20 +0200
Subjectlinux-4.1-rc7/drivers/irqchip/irq-renesas-intc-irqpin.c:418: array index used before limits check ?
Message-ID<pz3fY-5jW-25@gated-at.bofh.it>
Hello there,

[linux-4.1-rc7/drivers/irqchip/irq-renesas-intc-irqpin.c:418]: (style) Array ind
ex 'k' is used before limits check.

   if (!io[k] && k < INTC_IRQPIN_REG_NR_MANDATORY) {

Suggest sanity check array index before use.

Regards

David Binderman

 		 	   		  --
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web