Attention is currently required from: Ed Sharma, Johnny Lin, Jonathan Zhang, Paul Menzel.
Martin Roth has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/68637?usp=email )
Change subject: commonlib/fsp_relocate: Fix Coverity Issues
......................................................................
Patch Set 4:
(2 comments)
File src/commonlib/fsp_relocate.c:
https://review.coreboot.org/c/coreboot/+/68637/comment/026df7c5_cc166dee :
PS4, Line 230: offset_limit = roffset + rsize;
Fixes issue reported as below: […]
As with below, this doesn't fix the problem that the roffset and rsize are not sanity checked before using them.
https://review.coreboot.org/c/coreboot/+/68637/comment/ff102579_ef2a815f :
PS4, Line 258: ptr = &pe_base[aoff];
Fixes the below reported Coverity issue. […]
This doesn't verify the value though, so while it may get around the coverity warning, it doesn't "fix" it.
To fix the problem, you need to make sure that aoff is a reasonable value before using it as the offset.
--
To view, visit
https://review.coreboot.org/c/coreboot/+/68637?usp=email
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I635c62929e8be9a474a91a62c29c3b5ee9b0ee64
Gerrit-Change-Number: 68637
Gerrit-PatchSet: 4
Gerrit-Owner: Ed Sharma
aeddiesharma@fb.com
Gerrit-Reviewer: Johnny Lin
Johnny_Lin@wiwynn.com
Gerrit-Reviewer: Jonathan Zhang
jon.zhixiong.zhang@gmail.com
Gerrit-Reviewer: Martin Roth
martin.roth@amd.corp-partner.google.com
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: Paul Menzel
paulepanter@mailbox.org
Gerrit-CC: Stefan Reinauer
stefan.reinauer@coreboot.org
Gerrit-Attention: Jonathan Zhang
jon.zhixiong.zhang@gmail.com
Gerrit-Attention: Johnny Lin
Johnny_Lin@wiwynn.com
Gerrit-Attention: Ed Sharma
aeddiesharma@fb.com
Gerrit-Attention: Paul Menzel
paulepanter@mailbox.org
Gerrit-Comment-Date: Tue, 09 Jan 2024 20:17:40 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Ed Sharma
aeddiesharma@fb.com
Gerrit-MessageType: comment