Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.4k
src: suppress false coverity warning#42284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Conversation
Signed-off-by: Michael Dawson <[email protected]>
mhdawson commented Mar 10, 2022 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
This is the coverity warning. I believe it is a false positive since the pointer passed is only used as a key |
tniessen commented Mar 10, 2022
Does this affect any of our own workflows? If the answer is no, and because coverity is an external commercial and non-open source tool (as far as I am aware), I think I have a slight preference for not adding coverity-specific comments to our source code. As far as I understand it, we can set "Classification" to "False Positive" and/or "Action" to "Ignore" through the web interface: |
mhdawson commented Mar 10, 2022
@tniessen we already have 4-5 such comments in the code. I'm also thinking that other static analysis tools may report similar issues and having documented in the code that we believe they are ok will help us if we ever switch tools. |
mhdawson commented Mar 11, 2022
@tniessen looking at the remaining failures. There are a good number which are related to not initializing a structure before calling a method to initialize it. Those I think would best be handled by marking them in coverity itself instead of in the code. For this one I'd still prefer the comment in the code as it might avoid us looking at a similar report in another tool later on. |
nodejs-github-bot commented Mar 18, 2022
nodejs-github-bot commented Mar 21, 2022
Signed-off-by: Michael Dawson <[email protected]> PR-URL: #42284 Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]>
mhdawson commented Mar 22, 2022
Landed in d10c717 |
Signed-off-by: Michael Dawson <[email protected]> PR-URL: #42284 Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]>
Signed-off-by: Michael Dawson <[email protected]> PR-URL: nodejs#42284 Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]>
Signed-off-by: Michael Dawson <[email protected]> PR-URL: #42284 Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]>
Signed-off-by: Michael Dawson <[email protected]> PR-URL: nodejs#42284 Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]>
Signed-off-by: Michael Dawson <[email protected]> PR-URL: #42284 Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]>
Signed-off-by: Michael Dawson <[email protected]> PR-URL: #42284 Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]>
Signed-off-by: Michael Dawson <[email protected]> PR-URL: #42284 Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]>
Signed-off-by: Michael Dawson <[email protected]> PR-URL: #42284 Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]>
Signed-off-by: Michael Dawson <[email protected]> PR-URL: nodejs/node#42284 Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]>

Signed-off-by: Michael Dawson [email protected]