[PATCH] mi: Integer overflow for dashed lines longer than 46340. #31093

Keith Packard keithp at keithp.com
Mon Oct 25 20:56:39 PDT 2010


On Tue, 26 Oct 2010 09:11:53 +0530, Siddhesh Poyarekar <siddhesh.poyarekar at gmail.com> wrote:

> -    if (slopes[j].dy * slopes[i].dx > slopes[i].dy * slopes[j].dx)
> +    if ((int64_t)slopes[j].dy * slopes[i].dx > (int64_t)slopes[i].dy * slopes[j].dx)

Reviewed-by: Keith Packard <keithp at keithp.com>

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20101025/4141a1ca/attachment.pgp>


More information about the xorg-devel mailing list