Closed
Bug 1284489
Opened 9 years ago
Closed 9 years ago
Various scan-build errors in ssl3con
Categories
(NSS :: Libraries, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
3.26
People
(Reporter: franziskus, Assigned: franziskus)
References
Details
Attachments
(1 file)
|
3.22 KB,
patch
|
ttaubert
:
review+
|
Details | Diff | Splinter Review |
No description provided.
| Assignee | ||
Comment 1•9 years ago
|
||
Attachment #8767989 -
Flags: review?(ttaubert)
Comment 2•9 years ago
|
||
Comment on attachment 8767989 [details] [diff] [review]
scan-build-fixes.patch
Review of attachment 8767989 [details] [diff] [review]:
-----------------------------------------------------------------
::: lib/ssl/ssl3con.c
@@ +1529,5 @@
> pBuf += dh_p.len - dh_Ys.len;
> }
> /* If we're padding Y, dh_Ys can't be longer than dh_p. */
> PORT_Assert(!padY || dh_p.len >= dh_Ys.len);
> + PORT_Assert(dh_Ys.data);
Should move this up to where the other asserts are.
@@ +10569,5 @@
> hashes->u.pointer_to_hash_input.len,
> sigAndHash.hashAlg,
> &localHashes);
> + } else {
> + rv = SECFailure;
This shouldn't compile with NO_PKCS11_BYPASS=1. Maybe just wrap the whole thing in if (hashes->u.pointer_to_hash_input.data)?
Attachment #8767989 -
Flags: review?(ttaubert) → review+
Updated•9 years ago
|
Status: NEW → ASSIGNED
| Assignee | ||
Comment 3•9 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → 3.26
You need to log in
before you can comment on or make changes to this bug.
Description
•