Coverity issues involving negative arguments#14620
Coverity issues involving negative arguments#14620paulidale wants to merge 7 commits intoopenssl:masterfrom
Conversation
paulidale
commented
Mar 19, 2021
- documentation is added or updated
- tests are added or updated
|
Was this closed intentionally? Although maybe we should just change those _size() calls to return 0 instead of negative values. |
|
No, I must have closed it by accident. Lots of these outstanding at present. |
|
I really wonder if introducing the negative return value for these calls was right. |
|
These are mostly historic calls, so we have to live with them. |
|
ping for review |
|
Still feeling unrequited review. |
|
I'm still a little bit worried for the cases where we are newly introducing the negative error return value in 3.0. This can have quite serious impact in applications if they aren't properly ready to handle negative error returns. |
|
This isn't introducing any such functions. I don't think it's checking the returns from any either.
I agree, it's a concern and we really shouldn't be doing it. |
I do not think I am not saying this PR is introducing it. I am saying 3.0 introduces it. So maybe the right fix for this PR is to actually drop the negative returns for these. Okay I understand now. |
|
In essence, you are suggesting returning zero from All we're saving are the programs that check Our documentation isn't forgiving here: negative and zero returns are not mentioned. |
|
Ping @openssl ; This PR is falling into the limbo. |
171454f to
02b4bcd
Compare
|
Rebased to latest master, still waiting for a review or a suggestion about the negative return changes required. |
mattcaswell
left a comment
There was a problem hiding this comment.
This looks fine to me. This PR isn't introducing any changes which causes functions to return <0 where they didn't before. So, if that has occurred it is out of scope of this PR to fix it IMO.
|
This pull request is ready to merge |
|
Merged to master, thanks for the comments etc. |
Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from #14620)
Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from #14620)
Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from #14620)
Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from #14620)
Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from #14620)
Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from #14620)
Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from #14620)