Closed
Bug 1002929
Opened 12 years ago
Closed 12 years ago
mozilla::pkix::der::GeneralizedTime uses implicit conversion from der::Result to boolean
Categories
(Core :: Security: PSM, defect)
Core
Security: PSM
Tracking
()
RESOLVED
FIXED
mozilla32
People
(Reporter: briansmith, Assigned: briansmith)
Details
Attachments
(1 file)
|
945 bytes,
patch
|
keeler
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Attachment #8414231 -
Flags: review?(dkeeler)
Comment 1•12 years ago
|
||
Comment on attachment 8414231 [details] [diff] [review]
no-implicit-conversion.patch
Review of attachment 8414231 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good. Another thought: should we change the memcmp in Input::Expect to not do an implicit conversion? (i.e. "if (memcmp(input, expected, expectedLen) != 0)" on/around line 101)
Attachment #8414231 -
Flags: review?(dkeeler) → review+
Comment 2•12 years ago
|
||
(In reply to David Keeler (:keeler) from comment #1)
> Another thought: should we change the memcmp in Input::Expect to
> not do an implicit conversion? (i.e. "if (memcmp(input, expected,
> expectedLen) != 0)" on/around line 101)
I think implicit conversion between int and bool is ok (desired, even).
| Assignee | ||
Comment 3•12 years ago
|
||
(In reply to [:mmc] Monica Chew (please use needinfo) from comment #2)
> I think implicit conversion between int and bool is ok (desired, even).
I agree for memcmp at least.
Thanks for the review.
| Assignee | ||
Comment 4•12 years ago
|
||
Comment 5•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•