Possible bug in commit c7ce1b68

Guillaume Ayoub <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <1364305348.31304.4.camel@liZe76>
In the _cairo_pdf_surface_add_padded_image_surface() function introduced
in this commit:
http://cgit.freedesktop.org/cairo/commit/?id=c7ce1b68d5370f6e804a6edbf5be4bca3a5b7c57

This code looks like it has a typo:

if (_cairo_fixed_integer_ceil(box.p1.x) < 0 ||
_cairo_fixed_integer_ceil(box.p1.y) < 0 ||
_cairo_fixed_integer_floor(box.p2.y) > w ||
_cairo_fixed_integer_floor(box.p2.y) > h)

The first box.p2.y value should probably be box.p2.x.

I have no idea what the implications of this bug are, or how to
test/reproduce it.

-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
signature.asc (application/pgp-signature, 490 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)

iQEcBAABAgAGBQJRUaXEAAoJEFDXmmt3d/OD4zMIALg0ngC7ug8aPSzTV3uaUxsh
RTA5w+MAt5+UUlBLebfXItWW6zntOpl5u4NCs2vOfROPNQ65FrqkmG1AOAc5UQCT
5T31XzI6aUuBzzst6NN7B2xq20SHufTVVNwavV8LB7UFitUpg8uS+93uzT1YW4uD
JFpAb+fFytCUUkTxVxqfywKXjeVlSMd1xpmQseHO5xIWhHYqZNiJga0VvQU1tPvk
ne9lvZKpGiExIxrvpBW4Mgg+sQ0WSOclrtRqZPhQojizw+xXUwnKrayBF5x6yfGB
dE2t5H14ykfXDlamqkmkz9ZLgW7XkEgSDUOb5rxUQFoz5AxTVnY+RmelP+He8Ys=
=avuW
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.