Opened 11 years ago
Closed 11 years ago
#9877 closed bug (fixed)
[app_server] HTML5DrawingEngine.cpp: Called C++ object pointer is null
Reported by: | mt | Owned by: | axeld |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | Servers/app_server | Version: | R1/Development |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
In HTML5DrawingEngine::_ExtractBitmapRegions(), if bitmaps[i] fails to allocate, calling bitmaps[i]->ImportBits() is invalid. Please see attached report.
Attachments (3)
Change History (7)
by , 11 years ago
Attachment: | 0007-Fix-Called-C-object-pointer-is-null.patch added |
---|
comment:1 by , 11 years ago
patch: | 0 → 1 |
---|
comment:2 by , 11 years ago
if (result != B_OK) delete bitmaps[i];
should be moved in the "bitmaps[i] != null" code path. Could you please adjust the patch?
Note:
See TracTickets
for help on using tickets.
Patch