Attention is currently required from: Jakub Czapiga, Julius Werner, Yu-Ping Wu.
Maximilian Brune has posted comments on this change by Yu-Ping Wu. ( https://review.coreboot.org/c/coreboot/+/83830?usp=email )
Change subject: commonlib/bsd: Add strnlen() and strlen() functions
......................................................................
Patch Set 1:
(1 comment)
File payloads/libpayload/libc/string.c:
https://review.coreboot.org/c/coreboot/+/83830/comment/d88515a2_685329cc?usp... :
PS1, Line 71: /* NULL and empty strings have length 0. */
: if (!str)
: return 0;
You don't have this NULL check in the commonlib implementation. If you are unlucky a payload actually calls these functions with a possible NULL value. That would break the payloads if they did depend on that fact before this patch.
--
To view, visit
https://review.coreboot.org/c/coreboot/+/83830?usp=email
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I1203ec9affabe493bd14b46662d212b08240cced
Gerrit-Change-Number: 83830
Gerrit-PatchSet: 1
Gerrit-Owner: Yu-Ping Wu
yupingso@google.com
Gerrit-Reviewer: Jakub Czapiga
czapiga@google.com
Gerrit-Reviewer: Julius Werner
jwerner@chromium.org
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: Maximilian Brune
maximilian.brune@9elements.com
Gerrit-Attention: Jakub Czapiga
czapiga@google.com
Gerrit-Attention: Julius Werner
jwerner@chromium.org
Gerrit-Attention: Yu-Ping Wu
yupingso@google.com
Gerrit-Comment-Date: Thu, 08 Aug 2024 12:48:17 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No