diff options
author | Jacob Garber <jgarber1@ualberta.ca> | 2019-06-10 18:23:32 -0600 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2019-07-17 16:04:05 +0000 |
commit | 3c19382367f548d63fe2948b094e05c44d232039 (patch) | |
tree | 1120426ea3d0696448b8b0596fc2edac03121d88 /src/cpu/via/car | |
parent | c14eb3b9505ec8177038434d1ada6718113e2e70 (diff) |
nb/intel/nehalem: Prevent out of bounds read
If the decoded SPD DRAM frequency is slower than the controller minimum,
then there will be an unsigned integer underflow in the following loop,
which will lead to a very large out of bounds array access. Ensure this
does not happen.
Change-Id: Ic8ed1293adfe0866781bd638323977abd110777e
Signed-off-by: Jacob Garber <jgarber1@ualberta.ca>
Found-by: Coverity CID 1229675
Reviewed-on: https://review.coreboot.org/c/coreboot/+/33383
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/cpu/via/car')
0 files changed, 0 insertions, 0 deletions