Attention is currently required from: Paul Menzel, Rob Barnes, Felix Held.
Karthik Ramasubramanian has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/66553 )
Change subject: util/amdfwtool/amdfwread: Fix incorrect option index
......................................................................
Patch Set 7:
(1 comment)
File util/amdfwtool/amdfwread.c:
https://review.coreboot.org/c/coreboot/+/66553/comment/7794b91d_e94580b6
PS6, Line 162: {"soft-fuse", no_argument, 0, AMDFW_OPT_SOFT_FUSE},
According to the docs: […]
Yes, soft-fuse is at index 1 in long_option. With the previous version of code when no matching options were found, index was at 1 (since the previously matched option was soft-fuse). Hence incrementing the index was still within argc and everything was working fine. So we were just getting lucky.
--
To view, visit
https://review.coreboot.org/c/coreboot/+/66553
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I33c74a0c8e12c5af76954524cf7294b7541d286b
Gerrit-Change-Number: 66553
Gerrit-PatchSet: 7
Gerrit-Owner: Karthik Ramasubramanian
kramasub@google.com
Gerrit-Reviewer: Felix Held
felix-coreboot@felixheld.de
Gerrit-Reviewer: Raul Rangel
rrangel@chromium.org
Gerrit-Reviewer: Rob Barnes
robbarnes@google.com
Gerrit-Reviewer: Robert Zieba
robertzieba@google.com
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: Paul Menzel
paulepanter@mailbox.org
Gerrit-Attention: Paul Menzel
paulepanter@mailbox.org
Gerrit-Attention: Rob Barnes
robbarnes@google.com
Gerrit-Attention: Felix Held
felix-coreboot@felixheld.de
Gerrit-Comment-Date: Fri, 02 Sep 2022 20:31:24 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Raul Rangel
rrangel@chromium.org
Gerrit-MessageType: comment