Closed Bug 1284489 Opened 9 years ago Closed 9 years ago

Various scan-build errors in ssl3con

Categories

(NSS :: Libraries, defect)

3.25
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: franziskus, Assigned: franziskus)

References

Details

Attachments

(1 file)

No description provided.
Attachment #8767989 - Flags: review?(ttaubert)
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+
Status: NEW → ASSIGNED
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.

Attachment

General

Created:
Updated:
Size: