Closed Bug 495910 Opened 15 years ago Closed 15 years ago

UMR in cairo mac on msn cjk talos sites

Categories

(Core :: Graphics, defect)

1.9.1 Branch
x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 480032

People

(Reporter: sayrer, Unassigned)

References

()

Details

==47223== Conditional jump or move depends on uninitialised value(s)
==47223==    at 0x3DF8DFD: _cairo_restrict_value (cairo-misc.c:390)
==47223==    by 0x3DFF5E5: _moz_cairo_pattern_create_rgba (cairo-pattern.c:494)
==47223==    by 0x3DE3388: _moz_cairo_set_source_rgba (cairo.c:693)
==47223==    by 0x3D714F6: gfxContext::SetColor(gfxRGBA const&) (gfxContext.cpp:658)
...
==47223==  Uninitialised value was created by a heap allocation
==47223==    at 0x16B7F: operator new(unsigned long) (vg_replace_malloc.c:218)
==47223==    by 0x3BA70A6: nsThebesDeviceContext::CreateRenderingContextInstance(nsIRenderingContext*&) (nsThebesDeviceContext.cpp:385)
==47223==    by 0x3BF3AC6: -[ChildView drawRect:] (nsChildView.mm:3102)
==47223==    by 0x595329B: -[NSView _drawRect:clip:]
You know, I think this was fixed on the trunk; the alpha wasn't being initialized somewhere or something like that?
Looks like this is from using mColor in nsThebesRenderingContext before initializing it. It's fixed in trunk by adding
  , mColor(NS_RGB(0,0,0))
to the constructor.
Can you whip up the quick patch for 1.9.1 for that?
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.