Jacob Garber has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/33458 )
Change subject: sb/amd/sr5650: Add fine-grained bounds checking
......................................................................
Patch Set 1:
(1 comment)
https://review.coreboot.org/#/c/33458/1/src/southbridge/amd/sr5650/pcie.c
File src/southbridge/amd/sr5650/pcie.c:
https://review.coreboot.org/#/c/33458/1/src/southbridge/amd/sr5650/pcie.c@a3...
PS1, Line 369:
if ( dev_index !∈ ]4 ; 10 [ ) then return […]
No that's right. After subtraction we have ]0, 6[, which means we can index into an array of length 7 (which is the length of the largest CPL array). But, each array now has its own dedicated bounds checking, which replaces the > 6 or equivalent > 10 check.
--
To view, visit
https://review.coreboot.org/c/coreboot/+/33458
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I1610d35ca6cbb6cfb42c251e75b0e8b22b64252b
Gerrit-Change-Number: 33458
Gerrit-PatchSet: 1
Gerrit-Owner: Jacob Garber
jgarber1@ualberta.ca
Gerrit-Reviewer: David Hendricks
david.hendricks@gmail.com
Gerrit-Reviewer: Jacob Garber
jgarber1@ualberta.ca
Gerrit-Reviewer: Kyösti Mälkki
kyosti.malkki@gmail.com
Gerrit-Reviewer: Martin Roth
martinroth@google.com
Gerrit-Reviewer: Patrick Georgi
pgeorgi@google.com
Gerrit-Reviewer: Timothy Pearson
tpearson@raptorengineering.com
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: HAOUAS Elyes
ehaouas@noos.fr
Gerrit-Comment-Date: Fri, 14 Jun 2019 21:55:06 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: HAOUAS Elyes
ehaouas@noos.fr
Gerrit-MessageType: comment