Closed
Bug 1322458
Opened 8 years ago
Closed 8 years ago
Fix KungFuDeathGrip errors that clang plugin reports on Windows
Categories
(Developer Infrastructure :: Source Code Analysis, defect)
Tracking
(firefox53 fixed)
RESOLVED
FIXED
mozilla53
Tracking | Status | |
---|---|---|
firefox53 | --- | fixed |
People
(Reporter: ting, Unassigned)
References
Details
Attachments
(1 file, 1 obsolete file)
No description provided.
Reporter | ||
Comment 1•8 years ago
|
||
Comment hidden (mozreview-request) |
Reporter | ||
Updated•8 years ago
|
Attachment #8817348 -
Attachment is obsolete: true
Comment 3•8 years ago
|
||
mozreview-review |
Comment on attachment 8818737 [details]
Bug 1322458 - Fix kungFuDeathGrip errors that clang plugin reports on Windows.
https://reviewboard.mozilla.org/r/98564/#review99002
::: ipc/mscom/WeakRef.cpp:45
(Diff revision 1)
> }
> *ppv = nullptr;
>
> // Raise the refcount for stabilization purposes during aggregation
> RefPtr<IUnknown> kungFuDeathGrip(static_cast<IUnknown*>(this));
> + Unused << kungFuDeathGrip;
Nit: I think if you remove the static_cast here and just pass |this| directly, then the analysis would ignore this instance. Can you please try that? If that doesn't work, then the patch is fine as is.
::: widget/windows/TSFTextStore.cpp:1724
(Diff revision 1)
> mHasReturnedNoLayoutError = false;
> return;
> }
>
> RefPtr<nsWindowBase> kungFuDeathGrip(mWidget);
> + Unused << kungFuDeathGrip;
Instead of doing this, you need to give this a better name and use this variable everywhere further down this function instead of mWidget. This is a legit issue that the analysis has found. :-)
Attachment #8818737 -
Flags: review?(ehsan) → review-
Comment hidden (mozreview-request) |
Comment 5•8 years ago
|
||
mozreview-review |
Comment on attachment 8818737 [details]
Bug 1322458 - Fix kungFuDeathGrip errors that clang plugin reports on Windows.
https://reviewboard.mozilla.org/r/98564/#review99142
Attachment #8818737 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•8 years ago
|
Attachment #8818737 -
Flags: review?(aklotz)
Comment 6•8 years ago
|
||
mozreview-review |
Comment on attachment 8818737 [details]
Bug 1322458 - Fix kungFuDeathGrip errors that clang plugin reports on Windows.
https://reviewboard.mozilla.org/r/98564/#review99184
Thanks
Attachment #8818737 -
Flags: review?(aklotz) → review+
Pushed by tchou@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/6171fec299c6
Fix kungFuDeathGrip errors that clang plugin reports on Windows. r=aklotz,Ehsan
Comment 8•8 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla53
Updated•7 years ago
|
Product: Core → Firefox Build System
Updated•2 years ago
|
Product: Firefox Build System → Developer Infrastructure
You need to log in
before you can comment on or make changes to this bug.
Description
•