Closed
Bug 823336
Opened 13 years ago
Closed 13 years ago
Minor bug in security/nss/lib/libpkix/pkix_pl_nss/pki/pkix_pl_infoaccess.c
Categories
(NSS :: Libraries, defect)
NSS
Libraries
Tracking
(Not tracked)
RESOLVED
FIXED
3.14.2
People
(Reporter: kolya, Unassigned)
Details
Attachments
(1 file)
|
683 bytes,
patch
|
ryan.sleevi
:
review+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.40 Safari/537.17
Steps to reproduce:
I looked for various bugs in the Mozilla source code.
Actual results:
I found a minor issue in security/nss/lib/libpkix/pkix_pl_nss/pki/pkix_pl_infoaccess.c, where it incorrectly parses LDAP locations (skips over a null pointer, which might lead to memory corruption). I've attached a fairly obvious patch.
Updated•13 years ago
|
Assignee: nobody → nobody
Component: Untriaged → Libraries
Product: Firefox → NSS
Version: Trunk → trunk
Updated•13 years ago
|
Attachment #694167 -
Flags: review?(kaie)
Comment 1•13 years ago
|
||
Comment on attachment 694167 [details] [diff] [review]
Patch for pkix_pl_InfoAccess_ParseLocation()
Note: This should not cause any security errors (unlike the description from the patch), because we still break out of the loop when *avaPtr == '\0' on the next iteration, and we then assign *(avaPtr++) = '\0'. So there's no off-the-end writes.
This does fix the error checking logic though, causing libpkix to properly return an error for invalidly encoded AVAs, so this works for me.
Matti, do you need someone to commit this for you?
Attachment #694167 -
Flags: review?(kaie) → review+
Comment 2•13 years ago
|
||
Ryan: I'm not the patch submitter. I do only bug triage and requested a review for the submitter. I don't have cvs/hg access and it would be great if you could commit this patch.
Updated•13 years ago
|
OS: Linux → All
Hardware: x86_64 → All
Target Milestone: --- → 3.14.2
Comment 3•13 years ago
|
||
Checking in security/nss/lib/libpkix/pkix_pl_nss/pki/pkix_pl_infoaccess.c;
/cvsroot/mozilla/security/nss/lib/libpkix/pkix_pl_nss/pki/pkix_pl_infoaccess.c,v <-- pkix_pl_infoaccess.c
new revision: 1.14; previous revision: 1.13
done
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
Attachment #694167 -
Attachment is patch: true
You need to log in
before you can comment on or make changes to this bug.
Description
•