Re: [PATCH v3] drm/nouveau/nvif: Avoid build error due to potential integer overflows

2024-05-27 Thread Danilo Krummrich
On 5/24/24 15:48, Guenter Roeck wrote: Trying to build parisc:allmodconfig with gcc 12.x or later results in the following build error. drivers/gpu/drm/nouveau/nvif/object.c: In function 'nvif_object_mthd': drivers/gpu/drm/nouveau/nvif/object.c:161:9: error: 'memcpy' accessing 4294967264

[PATCH v3] drm/nouveau/nvif: Avoid build error due to potential integer overflows

2024-05-24 Thread Guenter Roeck
Trying to build parisc:allmodconfig with gcc 12.x or later results in the following build error. drivers/gpu/drm/nouveau/nvif/object.c: In function 'nvif_object_mthd': drivers/gpu/drm/nouveau/nvif/object.c:161:9: error: 'memcpy' accessing 4294967264 or more bytes at offsets 0 and 32 overl