Open
Bug 1416286
Opened 7 years ago
Updated 1 year ago
tls13con.c fix signed / unsigned compilation warnings
Categories
(NSS :: Libraries, defect, P3)
NSS
Libraries
Tracking
(Not tracked)
NEW
People
(Reporter: jeanluc.bonnafoux, Unassigned)
Details
Attachments
(1 file)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0 Build ID: 20171024165158 Steps to reproduce: Using Visual studio 2017 compiler, compilation of tls3con.c generates warnings. Actual results: Generated warnings are: security/nss/lib/ssl/tls13con.c:1669 [C4018] '<': signed/unsigned mismatch security/nss/lib/ssl/tls13con.c:4135 [C4018] '>': signed/unsigned mismatch security/nss/lib/ssl/tls13con.c:4140 [C4018] '<': signed/unsigned mismatch security/nss/lib/ssl/tls13con.c:4401 [C4018] '>': signed/unsigned mismatch Expected results: Code should compile without any compiler warning.
Another solution could be to change signature of tls13_Read0RttData function in order to have: PRUint32 tls13_Read0RttData(sslSocket *ss, void *buf, PRUint32 len) but this signature change would also impact some other functions.
Updated•7 years ago
|
Assignee: nobody → jeanluc.bonnafoux
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Comment 3•7 years ago
|
||
Hey Jean-Luc, this bug is already assigned to you :)
On this one, i think the main item is about function: PRInt32 tls13_LimitEarlyData(sslSocket *ss, SSL3ContentType type, PRInt32 toSend) The signature of this function uses signed int whereas code of this function does comparisons with PRUint32 earlyDataRemaining; which causes compilation warnings. tls13_LimitEarlyData is called once in sslsecur.c, with signed parameter. I am not sure about the best route to follow to solve this warning. Thanks,
Hello, i have posted a patch proposal changing also the signature of tls13_LimitEarlyData. From what i have understood, the call tls13_LimitEarlyData is always called with >= 0 parameters. Thanks,
Updated•6 years ago
|
Priority: -- → P3
Updated•2 years ago
|
Severity: normal → S3
Comment 7•1 year ago
|
||
The bug assignee is inactive on Bugzilla, so the assignee is being reset.
Assignee: jeanluc.bonnafoux → nobody
Status: ASSIGNED → NEW
You need to log in
before you can comment on or make changes to this bug.
Description
•