[haiku-commits] Re: haiku: hrev49855 - in src: servers/app/drawing/Painter/bitmap_painter tests/servers/app

  • From: "Adrien Destugues" <pulkomandy@xxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 18 Nov 2015 13:58:05 +0000

18 novembre 2015 14:40 julian.harnath@xxxxxxxxxxxxxx a écrit:

hrev49855 adds 2 changesets to branch 'master'
old head: 823513263eab8c570d59aeeb4332c8e8394b824a
new head: 718f3528595b93cc73fd78a89c12eb7e978dcef7
overview:
http://cgit.haiku-os.org/haiku/log/?qt=range&q=718f3528595b+%5E823513263eab

----------------------------------------------------------------------------

345d9bb4a26e: test_app_server: fix build

718f3528595b: app_server: bitmap interpolation; fix out-of-bounds access

* Optimized code path for bitmap drawing with bilinear interpolation
scaling was assuming that source bitmap is always at least 2 rows
in size.

* Fixes #12469: in webkit, scaled 1-pixel-high bitmaps often occur.
If the bitmap allocation is by chance aligned to a page end, access
to the non-existant second row crashes app_server.

Should we add a new test for this? Should we list tests to add somewhere?

--
Adrien.

Other related posts: