Closed Bug 52986 Opened 25 years ago Closed 25 years ago

crash in GTK gfx code if XGetImage fails

Categories

(Core :: XUL, defect, P3)

x86
Linux
defect

Tracking

()

VERIFIED DUPLICATE of bug 52275

People

(Reporter: fosterd, Assigned: tor)

Details

Attachments

(1 file)

We allocate an XImage here: http://lxr.mozilla.org/seamonkey/source/gfx/src/gtk/nsImageGTK.cpp#717 and then use it without checking to see if it was actually allocated. This is causing crashes for me; I can only reproduce them using my own skin though (I can add the URL for that if you think I'm at fault). I'm attaching a patch which just checks the ximage with an assertion after we call XGetImage. Assigning to tor based on cvs blame.
bug 52980 crash in libgfx_gtk.so
*** This bug has been marked as a duplicate of 52275 ***
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
verified dup.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: