Closed
Bug 1231107
Opened 10 years ago
Closed 10 years ago
[Static Analysis][Explicit null dereferenced] Function BuildSegmentsFromValueEntries from KeyframeEffect.cpp
Categories
(Core :: DOM: Animation, defect)
Core
DOM: Animation
Tracking
()
RESOLVED
FIXED
mozilla45
Tracking | Status | |
---|---|---|
firefox45 | --- | fixed |
People
(Reporter: andi, Assigned: andi)
References
(Blocks 1 open bug)
Details
(Keywords: coverity, Whiteboard: CID 1328736)
Attachments
(1 file)
1.10 KB,
patch
|
heycam
:
review+
|
Details | Diff | Splinter Review |
The Static Analysis tool Coverity added that variable animationProperty can be null thus causing a null pointer dereference on line:
>> // Now generate the segment.
>> AnimationPropertySegment* segment =
>> animationProperty->mSegments.AppendElement();
This could happen when condition is false:
>> // If we've moved on to a new property, create a new AnimationProperty
>> // to insert segments into.
>> if (aEntries[i].mProperty != lastProperty) {
>> MOZ_ASSERT(aEntries[i].mOffset == 0.0f);
>> animationProperty = aResult.AppendElement();
>> animationProperty->mProperty = aEntries[i].mProperty;
>> animationProperty->mWinsInCascade = true;
>> lastProperty = aEntries[i].mProperty;
>> }
Assignee | ||
Updated•10 years ago
|
Whiteboard: CID 1328736
Assignee | ||
Comment 1•10 years ago
|
||
Hello Johnny,
Can you please take a look other this patch?
THX
Attachment #8696666 -
Flags: review?(jst)
Comment 2•10 years ago
|
||
Comment on attachment 8696666 [details] [diff] [review]
Bug 1231107.diff
The relevant code is from Bug 1208951
Attachment #8696666 -
Flags: review?(jst) → review?(cam)
Updated•10 years ago
|
Component: DOM → DOM: Animation
Updated•10 years ago
|
Attachment #8696666 -
Flags: review?(cam) → review+
Assignee | ||
Comment 3•10 years ago
|
||
Thank you for the review.
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Keywords: checkin-needed
Comment 5•10 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla45
You need to log in
before you can comment on or make changes to this bug.
Description
•