Closed
Bug 1230911
Opened 10 years ago
Closed 10 years ago
[Static Analysis][Dereference before null check] In function TextureClient::CreateForDrawing from TextureClient.cpp
Categories
(Core :: Graphics: Layers, defect)
Core
Graphics: Layers
Tracking
()
RESOLVED
FIXED
mozilla46
People
(Reporter: andi, Assigned: andi)
References
(Blocks 1 open bug)
Details
(Keywords: coverity, Whiteboard: CID 1338038)
Attachments
(1 file, 1 obsolete file)
1.05 KB,
patch
|
Details | Diff | Splinter Review |
The Static Analysis tool Coverity added that pointer aAllocator is dereferenced before null check, that could resul to a null poinder dereference.
Assignee | ||
Comment 1•10 years ago
|
||
Hello Robert,
Can you please take a look other this patch?
THX
Attachment #8696442 -
Flags: review?(roc)
Comment on attachment 8696442 [details] [diff] [review]
Bug 1230911.diff
Review of attachment 8696442 [details] [diff] [review]:
-----------------------------------------------------------------
::: gfx/layers/client/TextureClient.cpp
@@ +693,5 @@
> TextureFlags aTextureFlags,
> TextureAllocationFlags aAllocFlags)
> {
> + // also test the validity of aAllocator
> + MOZ_ASSERT(aAllocator ? aAllocator->IPCOpen() : false);
Same here:
MOZ_ASSERT(aAllocator && aAllocator->IPCOpen()).
By the way if you're going to suggest exactly the same patch in different places, it's easier to combine them into one patch.
Attachment #8696442 -
Flags: review?(roc) → review+
Assignee | ||
Comment 3•10 years ago
|
||
Attachment #8696442 -
Attachment is obsolete: true
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Keywords: checkin-needed
Comment 5•10 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox46:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla46
Comment 7•9 years ago
|
||
bugherder |
You need to log in
before you can comment on or make changes to this bug.
Description
•