[cairo] [PATCH] image: prevent invalid ptr access for > 4GB images

Petr Kobalíček kobalicek.petr at gmail.com
Thu Mar 9 16:23:56 UTC 2017


I meant `cairo_format_stride_for_width()` has no knowledge about the height.

On Thu, Mar 9, 2017 at 5:23 PM, Petr Kobalíček <kobalicek.petr at gmail.com>
wrote:

> Since `cairo_format_stride_for_width()` has no knowledge about the width
> it cannot return -1 in case that stride * height would overflow. I think
> this must be checked.
>
> On Thu, Mar 9, 2017 at 12:01 PM, Adrian Johnson <ajohnson at redneon.com>
> wrote:
>
>> I wrote this patch [1] for bug 98165 last year. I found it is also
>> needed to fix a poppler bug [2]. Any objections to pushing it?
>>
>> [1] https://bugs.freedesktop.org/show_bug.cgi?id=98165#c6
>> [2] https://bugs.freedesktop.org/show_bug.cgi?id=100056
>>
>>
>> --
>> cairo mailing list
>> cairo at cairographics.org
>> https://lists.cairographics.org/mailman/listinfo/cairo
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cairographics.org/archives/cairo/attachments/20170309/20dd6df7/attachment.html>


More information about the cairo mailing list