Re: [Mesa-dev] [PATCH] anv: Fix unintentional integer overflow in anv_CreateDmaBufImageINTEL

2016-11-22 Thread Emil Velikov
On 20 November 2016 at 11:44, Mun Gwan-gyeong wrote: > pCreateInfo->strideInBytes * pCreateInfo->extent.height with type > "unsigned int" is evaluated using 32-bit arithmetic. > This fixes unintentional integer overflow by casting to uint64_t before > multifying. > > CID

[Mesa-dev] [PATCH] anv: Fix unintentional integer overflow in anv_CreateDmaBufImageINTEL

2016-11-20 Thread Mun Gwan-gyeong
pCreateInfo->strideInBytes * pCreateInfo->extent.height with type "unsigned int" is evaluated using 32-bit arithmetic. This fixes unintentional integer overflow by casting to uint64_t before multifying. CID 1394321 Signed-off-by: Mun Gwan-gyeong ---