Arthur Heymans has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/32291 )
Change subject: nb/via/vx900: Use 64 bits to prevent overflow
......................................................................
Patch Set 1:
(1 comment)
https://review.coreboot.org/#/c/32291/1//COMMIT_MSG
Commit Message:
https://review.coreboot.org/#/c/32291/1//COMMIT_MSG@9
PS1, Line 9: The bit operations are currently done using 32 bit math.
: Cast the first argument to 64 bits to prevent possible
: overflow.
Does this fix anything? If the 32 bit math overflows you'd certainly still have problems with that cast. IMO it would make more sense to check for the sanity of the memory space sizes.
--
To view, visit
https://review.coreboot.org/c/coreboot/+/32291
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Idd180f31e8cff797a6499b12bc685daa993aae05
Gerrit-Change-Number: 32291
Gerrit-PatchSet: 1
Gerrit-Owner: Jacob Garber
jgarber1@ualberta.ca
Gerrit-Reviewer: HAOUAS Elyes
ehaouas@noos.fr
Gerrit-Reviewer: Jacob Garber
jgarber1@ualberta.ca
Gerrit-Reviewer: Kyösti Mälkki
kyosti.malkki@gmail.com
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: Arthur Heymans
arthur@aheymans.xyz
Gerrit-Comment-Date: Fri, 12 Apr 2019 08:14:23 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment