Closed
Bug 480032
Opened 16 years ago
Closed 16 years ago
"Conditional jump or move depends on uninitialised value(s)" [@ _cairo_restrict_value]
Categories
(Core :: Graphics, defect)
Core
Graphics
Tracking
()
RESOLVED
FIXED
People
(Reporter: MatsPalmgren_bugz, Assigned: MatsPalmgren_bugz)
References
()
Details
(Keywords: fixed1.9.1, valgrind)
Attachments
(2 files)
5.72 KB,
text/plain
|
Details | |
1017 bytes,
patch
|
vlad
:
review+
vlad
:
superreview+
sayrer
:
approval1.9.1+
|
Details | Diff | Splinter Review |
"Conditional jump or move depends on uninitialised value(s)" [@ _cairo_restrict_value]
STEPS TO REPRODUCE
0. build Firefox trunk debug with:
ac_add_options --enable-tests
ac_add_options --enable-optimize="-fno-omit-frame-pointer -fno-asynchronous-unwind-tables -fno-inline -O -g -ggdb -DDEBUG_TRACEMALLOC_FRAMEARENA"
ac_add_options --enable-debug
ac_add_options --enable-jemalloc
ac_add_options --with-valgrind
1. run it under valgrind
ACTUAL RESULT
see attached valgrind log
In layout/generic/nsImageFrame.cpp:
The uninitialized value is stored locally as 'oldColor' and when it's
restored by SetColor() valgrind detects it eventually (see log):
1082 // if we could not draw the image, then just draw some graffiti
1083 if (!iconUsed) {
1084 nscolor oldColor;
1085 nscoord iconXPos = (vis->mDirection == NS_STYLE_DIRECTION_RTL) ?
1086 inner.XMost() - size : inner.x;
1087 nscoord twoPX = nsPresContext::CSSPixelsToAppUnits(2);
1088 aRenderingContext.DrawRect(iconXPos, inner.y,size,size);
1089 aRenderingContext.GetColor(oldColor);
1090 aRenderingContext.SetColor(NS_RGB(0xFF,0,0));
1091 aRenderingContext.FillEllipse(size/2 + iconXPos, size/2 + inner.y,
1092 size/2 - twoPX, size/2 - twoPX);
1093 aRenderingContext.SetColor(oldColor);
1094 }
Assignee | ||
Comment 1•16 years ago
|
||
Attachment #363962 -
Flags: superreview?(vladimir)
Attachment #363962 -
Flags: review?(vladimir)
Attachment #363962 -
Flags: superreview?(vladimir)
Attachment #363962 -
Flags: superreview+
Attachment #363962 -
Flags: review?(vladimir)
Attachment #363962 -
Flags: review+
Assignee | ||
Comment 2•16 years ago
|
||
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Comment 4•16 years ago
|
||
we're hitting this on the branch. I think we should take it.
Flags: wanted1.9.1+
Comment 5•16 years ago
|
||
The patch applies cleanly to 1.9.1
Updated•16 years ago
|
Attachment #363962 -
Flags: approval1.9.1+
Assignee | ||
Comment 6•16 years ago
|
||
Keywords: fixed1.9.1
You need to log in
before you can comment on or make changes to this bug.
Description
•