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


Groups > linux.kernel > #1160413

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

From David Binderman <dcb314@hotmail.com>
Newsgroups linux.kernel
Subject linux-4.1-rc7/drivers/irqchip/irq-renesas-intc-irqpin.c:418: array index used before limits check ?
Date 2015-06-08 13:20 +0200
Message-ID <pz3fY-5jW-25@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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/

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web