24062026 Coverity fixes#10773
Conversation
|
retest this please |
dgarske
left a comment
There was a problem hiding this comment.
Skoll Code Review
Scan type: reviewOverall recommendation: COMMENT
Findings: 1 total — 1 posted, 0 skipped
1 finding(s) posted as inline comments (see file-level comments below)
Posted findings
- [Info] *Adjacent dead data == NULL check left in place after dead-code cleanup —
src/ocsp.c:1189-1192
Review generated by Skoll
| @@ -1190,8 +1190,6 @@ OcspResponse* wolfSSL_d2i_OCSP_RESPONSE(OcspResponse** response, | |||
| return NULL; | |||
| if (*data == NULL) | |||
| return NULL; | |||
There was a problem hiding this comment.
*⚪ [Info] Adjacent dead data == NULL check left in place after dead-code cleanup
This PR removes the redundant if (len <= 0) return NULL; because line 1189 (if (data == NULL || *data == NULL || len <= 0) return NULL;) already covers it. That same combined guard also already covers the immediately-following if (*data == NULL) return NULL; on lines 1191-1192, which is therefore unreachable/dead in exactly the same way. This is pre-existing (the diff did not add it), so it is out of strict scope, but since the PR's stated theme is removing logically-dead code, a reviewer would reasonably remove this adjacent duplicate at the same time. No correctness impact either way.
Fix: Optionally drop the redundant if (*data == NULL) return NULL; for consistency with the dead-code cleanup in this PR. Not blocking; pre-existing and harmless.
There was a problem hiding this comment.
Fix applied, thanks.
… to maxSz assignment
…ently false positive)
Description
XBADFILEcheckremove(pubFile/privFile), add(void)castExpectTrue()to assignmentTesting
./configure --enable-all && make check