Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/44085 )
Change subject: lib/string: Add standard strstr() function
......................................................................
Patch Set 1:
(1 comment)
https://review.coreboot.org/c/coreboot/+/44085/1/src/lib/string.c
File src/lib/string.c:
https://review.coreboot.org/c/coreboot/+/44085/1/src/lib/string.c@169
PS1, Line 169: for (; *haystack; haystack++) {
I mean, it's gonna do that automatically (strncmp() still stops at '\0' on either string). […]
Ack. I'm not friends with pointers nor undefined behavior, so I'm usually paranoid when handling these.
--
To view, visit
https://review.coreboot.org/c/coreboot/+/44085
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I63e26e98ed2dd15542f81c0a3a5e353bb93b7350
Gerrit-Change-Number: 44085
Gerrit-PatchSet: 1
Gerrit-Owner: Jes Klinke
jbk@chromium.org
Gerrit-Reviewer: Furquan Shaikh
furquan@google.com
Gerrit-Reviewer: Jes Klinke
jbk@google.com
Gerrit-Reviewer: Julius Werner
jwerner@chromium.org
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: Angel Pons
th3fanbus@gmail.com
Gerrit-Comment-Date: Fri, 31 Jul 2020 20:21:06 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Julius Werner
jwerner@chromium.org
Comment-In-Reply-To: Angel Pons
th3fanbus@gmail.com
Gerrit-MessageType: comment