Fix out of bounds bitmap access on Haiku
* src/haiku_draw_support.cc (BView_DrawBitmapWithEraseOp): Fix out of bounds access to bitmap data.
This commit is contained in:
parent
83ae392d59
commit
4e1bf9bf48
1 changed files with 1 additions and 1 deletions
|
@ -313,7 +313,7 @@ BView_DrawBitmapWithEraseOp (void *view, void *bitmap, int x,
|
|||
BRect bounds = bc.Bounds ();
|
||||
for (int y = 0; y < BE_RECT_HEIGHT (bounds); ++y)
|
||||
{
|
||||
for (int x = 0; x <= BE_RECT_WIDTH (bounds); ++x)
|
||||
for (int x = 0; x < BE_RECT_WIDTH (bounds); ++x)
|
||||
{
|
||||
if (bits[y * (stride / 4) + x] == 0xFF000000)
|
||||
bits[y * (stride / 4) + x] = RGB_COLOR_UINT32 (low_color);
|
||||
|
|
Loading…
Add table
Reference in a new issue