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)

3.13.2
defect

Tracking

(Not tracked)

RESOLVED FIXED
3.13.4

People

(Reporter: wtc, Assigned: wtc)

Details

Attachments

(1 file)

Attached patch Proposed patch — — 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)
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
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
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: