Fix dangling-pointer bug in bits_image_fetch_bilinear_no_repeat_8888().
authorSøren Sandmann Pedersen <ssp@redhat.com>
Mon, 17 Jan 2011 19:12:20 +0000 (14:12 -0500)
committerSøren Sandmann Pedersen <ssp@redhat.com>
Wed, 19 Jan 2011 12:22:42 +0000 (07:22 -0500)
commit1d7195dd6c68eab73d063f37de3a9331446111d4
treeb40a7261fadb7bdfd3d9f09167a758683f997dd0
parent2ac4ae1ae253f7c2efedab036a677dac2f9c9eed
Fix dangling-pointer bug in bits_image_fetch_bilinear_no_repeat_8888().

The mask_bits variable is only declared in a limited scope, so the
pointer to it becomes invalid instantly. Somehow this didn't actually
trigger any bugs, but Brent Fulgham reported that Bounds Checker was
complaining about it.

Fix the bug by moving mask_bits to the function scope.
pixman/pixman-bits-image.c