Attention is currently required from: Felix Singer, Angel Pons, Light.
View Change
1 comment:
File ich_descriptors.c:
Patch Set #7, Line 1364: int ret = read_ich_descriptors_from_dump(dump, len, &cs, &desc);
As far as I can see, all fields are getting filled before returning 0.
Hmmm, that matches what I suspected. Doesn't say we are correct, though ;)
My concern here is that scan-build might only complain because it isn't
smart enough to see this. And if that's the case and we zero initialize the
struct now, there wouldn't be anything to see if read_ich_descriptors_from_dump()
would break in the future. So a potential, future, smarter scan-build or similar
tool might be able to warn us, but only if we don't initialize the struct.
To view, visit change 62763. To unsubscribe, or for help writing mail filters, visit settings.
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I6e5bc84c6199a0731db0a9c8ef56f1215686dab2
Gerrit-Change-Number: 62763
Gerrit-PatchSet: 10
Gerrit-Owner: Light <aarya.chaumal@gmail.com>
Gerrit-Reviewer: Anastasia Klimchuk <aklm@chromium.org>
Gerrit-Reviewer: Angel Pons <th3fanbus@gmail.com>
Gerrit-Reviewer: Felix Singer <felixsinger@posteo.net>
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: Felix Singer <felixsinger@posteo.net>
Gerrit-Attention: Angel Pons <th3fanbus@gmail.com>
Gerrit-Attention: Light <aarya.chaumal@gmail.com>
Gerrit-Comment-Date: Sat, 26 Mar 2022 19:35:25 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Nico Huber <nico.h@gmx.de>
Comment-In-Reply-To: Light <aarya.chaumal@gmail.com>
Gerrit-MessageType: comment