Skip to content
Commit 7181a6d1 authored by Alexey Brodkin's avatar Alexey Brodkin Committed by Alexey Brodkin
Browse files

ARC: Fix iteration in arc_xx_version()



"i" gets incremented before we're entering loop body
and effectively we iterate from 1 to 8 instead of 0 to 7.

This way we:
 a) Skip the first line of struct hs_versions
 b) Go over it and access memory beyond the structure

Signed-off-by: default avatarAlexey Brodkin <abrodkin@synopsys.com>
parent d771dd53
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment