[haiku-bugs] Re: [Haiku] #10469: [Gravity] crashes in BBitmap::_AssertPointer()

  • From: "pulkomandy" <trac@xxxxxxxxxxxx>
  • Date: Tue, 19 Aug 2014 11:48:39 -0000

#10469: [Gravity] crashes in BBitmap::_AssertPointer()
-------------------------------+----------------------------
   Reporter:  diver            |      Owner:  kallisti5
       Type:  bug              |     Status:  new
   Priority:  normal           |  Milestone:  R1/alpha5
  Component:  Kits/OpenGL Kit  |    Version:  R1/Development
 Resolution:                   |   Keywords:
 Blocked By:                   |   Blocking:
Has a Patch:  0                |   Platform:  All
-------------------------------+----------------------------

Comment (by pulkomandy):

 I tried to debug mesa_legacy, and I found that there is an integer
 overflow. The fWidth and fHeight used when allocating the bitmap are
 unsigned ints, so an attempt to set them to -1 leads to an overflow. This
 prevents the already existing "<1" checks from working. Since we also
 don't check wether the bitmap allocation and InitCheck succeded, we hit a
 BBitmap assert when accessing the non existing bits.

--
Ticket URL: <https://dev.haiku-os.org/ticket/10469#comment:4>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: