Closed
Bug 734534
Opened 14 years ago
Closed 14 years ago
Fix a buffer length bug and nits in the next protocol negotiation (NPN) functions
Categories
(NSS :: Libraries, defect, P1)
Tracking
(Not tracked)
RESOLVED
FIXED
3.13.4
People
(Reporter: wtc, Assigned: wtc)
Details
Attachments
(1 file)
|
2.83 KB,
patch
|
Details | Diff | Splinter Review |
The attached patch fixed a buffer length bug and miscellaneous nits in the
next protocol negotiation (NPN) functions added in bug 547312.
The buffer length bug is in ssl3_ClientHandleNextProtoNegoXtn and is caused
by a typo.
I also changed the functions ssl_NextProtoNegoCallback and SSL_GetNextProto
to not return the actual output length when they fail due to inadequate output
buffer size. That behavior is not documented, and the NPN spec guarantees a
buffer size of 255 bytes is enough.
Attachment #604559 -
Flags: review?(bsmith)
| Assignee | ||
Comment 1•14 years ago
|
||
I asked Adam Langley to review this patch. See
https://chromiumcodereview.appspot.com/9663034/
for my annotations of two changes in the patch.
Patch checked in on the NSS trunk (NSS 3.13.4).
Checking in ssl3ext.c;
/cvsroot/mozilla/security/nss/lib/ssl/ssl3ext.c,v <-- ssl3ext.c
new revision: 1.22; previous revision: 1.21
done
Checking in sslsock.c;
/cvsroot/mozilla/security/nss/lib/ssl/sslsock.c,v <-- sslsock.c
new revision: 1.84; previous revision: 1.83
done
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 2•14 years ago
|
||
Comment on attachment 604559 [details] [diff] [review]
Proposed patch
I backported the sslsock.c changes to the NSS_3_13_4_BRANCH
for NSS 3.13.4.
Checking in sslsock.c;
/cvsroot/mozilla/security/nss/lib/ssl/sslsock.c,v <-- sslsock.c
new revision: 1.82.2.1; previous revision: 1.82
done
Updated•14 years ago
|
Attachment #604559 -
Flags: review?(bsmith)
You need to log in
before you can comment on or make changes to this bug.
Description
•