Closed
Bug 2020614
Opened 18 days ago
Closed 5 days ago
tls13_CopyEchConfigs copies only the last config for every list entry
Categories
(NSS :: Libraries, defect, P3)
NSS
Libraries
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mdauer, Assigned: jschanck)
Details
(Keywords: ai-involved)
Attachments
(1 file)
tls13_CopyEchConfigs in lib/ssl/tls13ech.c uses PR_LIST_TAIL(oConfigs) instead of the loop variable cur_p, causing every iteration to copy the last config in the source list rather than the current one.
lib/ssl/tls13ech.c:98:
for (PRCList *cur_p = PR_LIST_HEAD(oConfigs);
cur_p != oConfigs;
cur_p = PR_NEXT_LINK(cur_p)) {
config = (sslEchConfig *)PR_LIST_TAIL(oConfigs); // Bug: should be cur_p
The loop iterates with cur_p but never uses it. PR_LIST_TAIL(oConfigs) always yields the last element.
| Reporter | ||
Updated•18 days ago
|
Keywords: ai-involved
| Assignee | ||
Comment 1•16 days ago
|
||
| Assignee | ||
Updated•16 days ago
|
Assignee: nobody → jschanck
Severity: -- → S3
Status: NEW → ASSIGNED
Priority: -- → P3
Pushed by jschanck@mozilla.com:
https://hg.mozilla.org/projects/nss/rev/d256e99566f5
tls13_CopyEchConfigs uses PR_LIST_TAIL instead of loop variable. r=djackson
Status: ASSIGNED → RESOLVED
Closed: 5 days ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•