summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2012-12-02 11:49:54 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2012-12-02 11:51:50 +0100
commit4dd2c5277b6da35ceb200d814c39a581e69c5258 (patch)
treeeb223b1062061742e6a47b36a092901d80a733c1 /utils
parent9f19209c77b2131e89d3e7fb12771fb26ef491b3 (diff)
downloadrockbox-4dd2c5277b6da35ceb200d814c39a581e69c5258.tar.gz
rockbox-4dd2c5277b6da35ceb200d814c39a581e69c5258.zip
hwemul: fix code (out of bound access)
As noticed by bertrik some code accesses an array out of its bounds Change-Id: I891d0305213ca7081c386b306f87fe9e1ba3b6c5
Diffstat (limited to 'utils')
-rw-r--r--utils/imxtools/hwemul/dev/main.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/utils/imxtools/hwemul/dev/main.c b/utils/imxtools/hwemul/dev/main.c
index 3a4d8620c0..5adbb9fd23 100644
--- a/utils/imxtools/hwemul/dev/main.c
+++ b/utils/imxtools/hwemul/dev/main.c
@@ -1475,7 +1475,6 @@ void main(uint32_t arg)
qh_array[1].max_pkt_length = 1 << 29 | MAX_PKT_SIZE_EP0 << 16;
qh_array[2].max_pkt_length = 1 << 29 | MAX_PKT_SIZE << 16;
qh_array[3].max_pkt_length = 1 << 29 | MAX_PKT_SIZE << 16;
- qh_array[5].max_pkt_length = 1 << 29 | MAX_PKT_SIZE << 16;
/* setup qh */
REG_ENDPOINTLISTADDR = (unsigned int)qh_array;
/* clear setup status */