Attention is currently required from: V Sowmya, Shahina Shaik, Haribalaraman Ramasubramanian, Sridhar Siricilla, Balaji Manigandan, Yu-Ping Wu.
Shahina Shaik has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/69220 )
Change subject: UPSTREAM: cbfstool: Fix possible memory leak
......................................................................
Patch Set 4:
(3 comments)
Commit Message:
https://review.coreboot.org/c/coreboot/+/69220/comment/c0b0cc9e_f712be4e
PS4, Line 7: UPSTREAM
Please remove the `UPSTREAM` prefix.
Removed the "UPSTREAM" prefix from commit message.
File util/cbfstool/cbfstool.c:
https://review.coreboot.org/c/coreboot/+/69220/comment/d072e644_d8ac1c50
PS4, Line 773: header_offset
Take the chance to fix the indent (by aligning with `&image`)?
Fixed the indent as suggested.
File util/cbfstool/common.c:
https://review.coreboot.org/c/coreboot/+/69220/comment/308a1135_fc03680d
PS4, Line 40: }
Not related to your change, but I think writing `return -1` here is more straightforward
In line no:30, strdup is using malloc internally to allocate memory for the buffer->name, which has to be freed incase of there is no memory allocated for "buffer->data.
--
To view, visit
https://review.coreboot.org/c/coreboot/+/69220
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I01c4643d1e671d9bd9971ac6db8031634fffd61e
Gerrit-Change-Number: 69220
Gerrit-PatchSet: 4
Gerrit-Owner: Shahina Shaik
shahina.shaik@intel.com
Gerrit-Reviewer: Balaji Manigandan
balaji.manigandan@intel.com
Gerrit-Reviewer: Haribalaraman Ramasubramanian
haribalaraman.r@intel.com
Gerrit-Reviewer: Rizwan Qureshi
rizwan.qureshi@intel.com
Gerrit-Reviewer: Shahina Shaik
shahina.shaik@intel.corp-partner.google.com
Gerrit-Reviewer: Sridhar Siricilla
sridhar.siricilla@intel.com
Gerrit-Reviewer: V Sowmya
v.sowmya@intel.com
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: Yu-Ping Wu
yupingso@google.com
Gerrit-Attention: V Sowmya
v.sowmya@intel.com
Gerrit-Attention: Shahina Shaik
shahina.shaik@intel.com
Gerrit-Attention: Haribalaraman Ramasubramanian
haribalaraman.r@intel.com
Gerrit-Attention: Sridhar Siricilla
sridhar.siricilla@intel.com
Gerrit-Attention: Balaji Manigandan
balaji.manigandan@intel.com
Gerrit-Attention: Yu-Ping Wu
yupingso@google.com
Gerrit-Comment-Date: Mon, 07 Nov 2022 06:35:58 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Yu-Ping Wu
yupingso@google.com
Gerrit-MessageType: comment