[CID 1242894][CID 1242852] unused values
Categories
(NSS :: Libraries, defect, P3)
Tracking
(firefox46 affected)
| Tracking | Status | |
|---|---|---|
| firefox46 | --- | affected |
People
(Reporter: franziskus, Assigned: franziskus)
References
(Blocks 1 open bug)
Details
(Keywords: coverity, Whiteboard: CID1242894,CID1242852)
Attachments
(2 files, 3 obsolete files)
|
3.59 KB,
patch
|
Details | Diff | Splinter Review | |
|
4.39 KB,
patch
|
kjacobs
:
review+
|
Details | Diff | Splinter Review |
| Assignee | ||
Comment 1•10 years ago
|
||
Comment 2•10 years ago
|
||
| Assignee | ||
Comment 3•10 years ago
|
||
Comment 4•10 years ago
|
||
Updated•10 years ago
|
| Assignee | ||
Comment 5•10 years ago
|
||
Comment 6•10 years ago
|
||
| Assignee | ||
Comment 7•10 years ago
|
||
Updated•9 years ago
|
Updated•9 years ago
|
| Assignee | ||
Updated•8 years ago
|
Comment 9•7 years ago
|
||
You didn't remove the unnecessary assignment to result in JAR_extract, how about this:
Comment 10•7 years ago
|
||
By adding the goto inside the loops, you cause the side effect that the cleanup function inflateEnd will no longer get called.
I suggest this patch, which avoids goto from inside the loops. Instead, it will break out of both loops as soon as we get an error.
The cleanup inflateEnd will continue to be called. If there was a error condition prior to inflateEnd, we'll continue to use that status.
Updated•7 years ago
|
Comment 11•7 years ago
|
||
Comment 12•7 years ago
|
||
The patch looks reasonable, however there's no loser label declared, so it will fail to compile as-is.
Comment 13•7 years ago
|
||
My patch illustrated my suggestion for the the middle part of Franziskus' patch. I had not tested it, and I failed to include the trailing part of Franziskus' patch. I'll set a reminder for myself to attach a complete patch soon.
Comment 14•7 years ago
|
||
add missing goto / cleanup changes
Updated•7 years ago
|
Comment 15•7 years ago
|
||
Comment 16•7 years ago
|
||
pushed with clang-format fixes applied:
https://hg.mozilla.org/projects/nss/rev/b6d3f5c95aad504f2f735a89f8bd0621ba4db80d
Description
•