Closed Bug 803121 Opened 14 years ago Closed 13 years ago

crash in imgRequestProxy::GetStatusTracker

Categories

(Core :: Graphics: ImageLib, defect)

19 Branch
x86
Windows NT
defect
Not set
critical

Tracking

()

RESOLVED FIXED
mozilla19
Tracking Status
firefox18 --- unaffected
firefox19 + fixed

People

(Reporter: jdm, Assigned: jdm)

References

Details

(Keywords: crash, regression)

Crash Data

Attachments

(1 file)

This bug was filed from the Socorro interface and is report bp-f8778e4f-8149-4ef0-920a-545ad2121017 . ============================================================= The imgRequestProxy destructor uses GetImage, and imgRequestProxyStatic doesn't override this, so we end up doing a null-deref since mOwner is null for static requests.
Crash Signature: [@ imgRequestProxy::GetStatusTracker()] → [@ imgRequestProxy::GetStatusTracker()] [@ imgRequest::GetStatusTracker() ]
Keywords: regression
Version: Trunk → 19 Branch
I was wrong; we're using virtual functions in imgRequestProxyStatic from ~imgRequestProxy, and that's Very Bad.
Comment on attachment 673371 [details] [diff] [review] Avoid using virtual functions in imgRequestProxy's destructor. Review of attachment 673371 [details] [diff] [review]: ----------------------------------------------------------------- It doesn't make me dance, except for the spelling, but I also don't have any great suggestions for you. ::: image/src/imgRequestProxy.cpp @@ +24,5 @@ > #include "nspr.h" > > using namespace mozilla::image; > > +class ProxyBehaviour These classes deserve explanatory comments
Attachment #673371 - Flags: review?(joe) → review+
Whoops, forgot about this. I'll land this expediently.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla19
Depends on: 853707
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: