Closed
Bug 334679
Opened 18 years ago
Closed 18 years ago
Duplicate line in ec_GF2m_validate_point
Categories
(NSS :: Libraries, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
3.11.2
People
(Reporter: wtc, Assigned: wtc)
Details
Attachments
(1 file)
728 bytes,
patch
|
douglas
:
review+
|
Details | Diff | Splinter Review |
I found this bug by code inspection. In lib/freebl/ecl/ec2_aff.c:ec_GF2m_validate_point, there is a duplicate line: /* left-hand side: y^2 + x*y */ MP_CHECKOK( group->meth->field_sqr(&pyt, &accl, group->meth) ); MP_CHECKOK( group->meth->field_mul(&pxt, &pyt, &tmp, group->meth) ); MP_CHECKOK( group->meth->field_mul(&pxt, &pyt, &tmp, group->meth) ); MP_CHECKOK( group->meth->field_add(&accl, &tmp, &accl, group->meth) ); The duplicate line is harmless because it simply does the same operation again (in pseudo-code): tmp = pxt * pyt; tmp = pxt * pyt;
Assignee | ||
Comment 1•18 years ago
|
||
Remove the duplicate line.
Attachment #219680 -
Flags: review?(douglas)
Updated•18 years ago
|
Attachment #219680 -
Flags: review?(douglas) → review+
Assignee | ||
Comment 2•18 years ago
|
||
I checked in the patch on the NSS trunk (3.12) and the NSS_3_11_BRANCH (3.11.2). Checking in ec2_aff.c; /cvsroot/mozilla/security/nss/lib/freebl/ecl/ec2_aff.c,v <-- ec2_aff.c new revision: 1.4; previous revision: 1.3 done Checking in ec2_aff.c; /cvsroot/mozilla/security/nss/lib/freebl/ecl/ec2_aff.c,v <-- ec2_aff.c new revision: 1.3.2.1; previous revision: 1.3 done
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Target Milestone: --- → 3.11.2
You need to log in
before you can comment on or make changes to this bug.
Description
•