commit | aa9b762d127185d241d69d045650ae1d11e16d01 | [log] [tgz] |
---|---|---|
author | Maureen Helm <maureen.helm@nxp.com> | Thu Aug 29 16:29:39 2019 -0500 |
committer | Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no> | Fri Aug 30 16:57:55 2019 +0200 |
tree | 42f8e87a2a629e2c58dc5eaf90935f9234b603eb | |
parent | 47f36afdb93dbb35e5943a8bfb70bf71e16fd226 [diff] |
disk: Fix usdhc driver out-of-bounds array access The usdhc driver was incorrectly post-decrementing a do/while loop iterator, causing an extra iteration of the loop and an out-of-bounds array access. Change the iterator to decrement within the loop instead. Tested samples/subsys/fs/fat_fs on the mimxrt1050_evk board. Coverity-CID: 203403 Signed-off-by: Maureen Helm <maureen.helm@nxp.com>