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

Adrian Johnson <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
As the maximum image width is 32767 I don't see how this could overflow.

On 10/03/17 02:53, Petr Kobalíček 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 <[email protected]
> <mailto:[email protected]>> 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
>     <https://bugs.freedesktop.org/show_bug.cgi?id=98165#c6>
>     [2] https://bugs.freedesktop.org/show_bug.cgi?id=100056
>     <https://bugs.freedesktop.org/show_bug.cgi?id=100056>
> 
> 
>     --
>     cairo mailing list
>     [email protected] <mailto:[email protected]>
>     https://lists.cairographics.org/mailman/listinfo/cairo
>     <https://lists.cairographics.org/mailman/listinfo/cairo>
> 
> 
> 
> 

-- 
cairo mailing list
[email protected]
https://lists.cairographics.org/mailman/listinfo/cairo
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.