projects
/
osmocom-bb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48db968
)
calypso/irq: Fix array bounds checking
author
Harald Welte
<laforge@gnumonks.org>
Sat, 16 Jul 2011 15:46:54 +0000
(17:46 +0200)
committer
Harald Welte
<laforge@gnumonks.org>
Sat, 16 Jul 2011 15:46:54 +0000
(17:46 +0200)
Found by Smatch:
calypso/irq.c +200 irq_register_handler(5) error: buffer overflow 'irq_handlers' 32 <= 32
src/target/firmware/calypso/irq.c
patch
|
blob
|
history
diff --git
a/src/target/firmware/calypso/irq.c
b/src/target/firmware/calypso/irq.c
index
a3d57fb
..
136fd55
100644
(file)
--- a/
src/target/firmware/calypso/irq.c
+++ b/
src/target/firmware/calypso/irq.c
@@
-194,7
+194,7
@@
void fiq(void)
void irq_register_handler(enum irq_nr nr, irq_handler *handler)
{
- if (nr > NR_IRQS)
+ if (nr >
=
NR_IRQS)
return;
irq_handlers[nr] = handler;