Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1220)

Issue 283630043: Fix "safe" scan-build issues

Can't Edit
Can't Publish+Mail
Start Review
Created:
8 years, 1 month ago by ekr-rietveld
Modified:
8 years, 1 month ago
Reviewers:
franziskuskiefer, mt, franziskus
Visibility:
Public.

Description

Fix "safe" scan-build issues

Patch Set 1 #

Total comments: 19

Patch Set 2 : Revised/rebased patch #

Total comments: 4

Patch Set 3 : Franziskus comments/rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -34 lines) Patch
M cmd/strsclnt/strsclnt.c View 1 8 chunks +7 lines, -8 lines 0 comments Download
M cmd/tstclnt/tstclnt.c View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M lib/ssl/ssl3con.c View 1 2 12 chunks +7 lines, -16 lines 0 comments Download
M lib/ssl/ssl3ext.c View 13 chunks +23 lines, -8 lines 0 comments Download
M lib/ssl/sslsecur.c View 2 chunks +3 lines, -0 lines 0 comments Download
M lib/ssl/sslsock.c View 1 chunk +1 line, -1 line 0 comments Download
M lib/ssl/tls13con.c View 1 1 chunk +0 lines, -1 line 0 comments Download
M lib/util/verref.h View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 8
ekr-rietveld
8 years, 1 month ago (2016-03-13 23:42:04 UTC) #1
ekr-rietveld
MT, these are the changes that I think are "safe" in the sense that they ...
8 years, 1 month ago (2016-03-13 23:42:31 UTC) #2
mt
Patch Set 1 LGTM; most of these extra changes would just make things a tiny ...
8 years, 1 month ago (2016-03-14 00:09:08 UTC) #3
ekr-rietveld
Should I land these in advance of fixing the more substantive ones? https://codereview.appspot.com/283630043/diff/1/cmd/strsclnt/strsclnt.c File cmd/strsclnt/strsclnt.c ...
8 years, 1 month ago (2016-03-14 00:20:13 UTC) #4
ekr-rietveld
https://codereview.appspot.com/283630043/diff/1/cmd/strsclnt/strsclnt.c File cmd/strsclnt/strsclnt.c (right): https://codereview.appspot.com/283630043/diff/1/cmd/strsclnt/strsclnt.c#newcode330 cmd/strsclnt/strsclnt.c:330: typedef int startFn(void *a, void *b, int c); On ...
8 years, 1 month ago (2016-03-14 13:29:15 UTC) #5
ekr-rietveld
8 years, 1 month ago (2016-03-15 12:04:32 UTC) #6
franziskus
lgtm in general. But please have a look at the comments. https://codereview.appspot.com/283630043/diff/20001/cmd/tstclnt/tstclnt.c File cmd/tstclnt/tstclnt.c (right): ...
8 years, 1 month ago (2016-03-15 13:32:18 UTC) #7
ekr-rietveld
8 years, 1 month ago (2016-03-15 13:35:22 UTC) #8
https://codereview.appspot.com/283630043/diff/20001/cmd/tstclnt/tstclnt.c
File cmd/tstclnt/tstclnt.c (right):

https://codereview.appspot.com/283630043/diff/20001/cmd/tstclnt/tstclnt.c#new...
cmd/tstclnt/tstclnt.c:1582: PR_Poll(pollset, 1, PR_INTERVAL_NO_TIMEOUT);
On 2016/03/15 13:32:18, franziskus wrote:
> I don't think we should remove the assignment here but rather check the
result.
> At least something like if (CC == -1) { /* print and set error */ }

OK. I figured this was harmless, but I can do that.

https://codereview.appspot.com/283630043/diff/20001/lib/ssl/ssl3con.c
File lib/ssl/ssl3con.c (right):

https://codereview.appspot.com/283630043/diff/20001/lib/ssl/ssl3con.c#newcode...
lib/ssl/ssl3con.c:9184: goto loser; /* alert_loser */
On 2016/03/15 13:32:18, franziskus wrote:
> why not leaving desc in and goto alert_loser;?

That was my comment to Tim as well. I will clean this when I rebase onto the new
code.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b