[U-Boot] [PATCH 1/1] mips: micronas/vct: check array bounds before access

2018-03-18 Thread Heinrich Schuchardt
If we check an index against array bounds, we should do so before accessing the array and not afterwards. Signed-off-by: Heinrich Schuchardt --- board/micronas/vct/scc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/board/micronas/vct/scc.c b/board/micronas/vct/scc.c ind

Re: [U-Boot] [PATCH 1/1] mips: micronas/vct: check array bounds before access

2018-03-18 Thread Daniel Schwierzeck
On 18.03.2018 23:43, Heinrich Schuchardt wrote: > If we check an index against array bounds, we should do so before > accessing the array and not afterwards. > > Signed-off-by: Heinrich Schuchardt > --- > board/micronas/vct/scc.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > a