Attention is currently required from: Edward O'Callaghan, Angel Pons, Light.
View Change
1 comment:
File ich_descriptors.c:
Patch Set #14, Line 501: for (j = 0; j < (size_t)min(num_regions, 12); j++)
I don't think it's the max number of regions as num_regions can be > 12. […]
I agree this is not the max number of regions (initialised as 10 or 16 above), but let's assume it's SOMETHING_ELSE.
I would really prefer to introduce a macro, or a constant, in a separate patch. This patch is small (which is great), and is doing exactly one small thing, which is even better (prevents underflow and fixes one scan-build issue). I would keep it like this.
Would you agree to leave macro/constant for later (for a separate patch)? Especially given that we need to figure out good name for "12".
To view, visit change 62764. To unsubscribe, or for help writing mail filters, visit settings.
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I5921cc571f3dca5188ca1973dba6ececbcbe2f39
Gerrit-Change-Number: 62764
Gerrit-PatchSet: 16
Gerrit-Owner: Light <aarya.chaumal@gmail.com>
Gerrit-Reviewer: Anastasia Klimchuk <aklm@chromium.org>
Gerrit-Reviewer: Angel Pons <th3fanbus@gmail.com>
Gerrit-Reviewer: Edward O'Callaghan <quasisec@chromium.org>
Gerrit-Reviewer: Nico Huber <nico.h@gmx.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter@mailbox.org>
Gerrit-Attention: Edward O'Callaghan <quasisec@chromium.org>
Gerrit-Attention: Angel Pons <th3fanbus@gmail.com>
Gerrit-Attention: Light <aarya.chaumal@gmail.com>
Gerrit-Comment-Date: Tue, 29 Mar 2022 00:41:09 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Edward O'Callaghan <quasisec@chromium.org>
Comment-In-Reply-To: Light <aarya.chaumal@gmail.com>
Gerrit-MessageType: comment