pixman-general: Tighten up calculation of temporary buffer sizes
authorBen Avison <bavison@riscosopen.org>
Tue, 22 Sep 2015 11:43:25 +0000 (12:43 +0100)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Fri, 25 Sep 2015 11:19:15 +0000 (14:19 +0300)
commit23525b4ea5bc2dd67f8f65b90d023b6580ecbc36
tree66da58146803b075330d44d1151de09a4069eef2
parent8b49d4b6b460d0c9299bca4ccddd7cd00d8f8441
pixman-general: Tighten up calculation of temporary buffer sizes

Each of the aligns can only add a maximum of 15 bytes to the space
requirement. This permits some edge cases to use the stack buffer where
previously it would have deduced that a heap buffer was required.

Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
pixman/pixman-general.c