[Webkit-unassigned] [Bug 18465] wxWebit crash in BitmapImage::draw on particular site

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Apr 14 05:26:53 PDT 2008


------- Comment #5 from avasilev at voipgate.com  2008-04-14 05:26 PDT -------
@Hyatt: Yes, the images are checked and they aren't null, we have valid images
when the crash happens.
@Kevin: The crash with the 'dir.bg' site occurred also with msvc, in exactly
the same way. I have dug deeply in wxWidgets to find the cause - it was because
of the Blit code trying to read the source image past its end - wxWidgets
assumes that the source and destination are of the same size and does not
perform any checks on this. As for the image resize, I just committed a patch
and then read your reply that you are going to do the same - I'm not sure my
variant of rescaling is very efficient, but this seems to be the only way to
rescale image - by converting to wxImage and then back to wxBitmap, the doc
says the only other way is to blit between wxMemoryDC-s but i didn't find out
any resizing support special for wxMemoryDC, so I used the canonical way via

Since I have changed the original files, and now the crashes don't occur, I
will do a build on the original source tree and send you the traces

Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the webkit-unassigned mailing list