Re: [PATCH] selftests/mm: use calloc instead of malloc in pagemap_ioctl.c

2025-08-25 Thread David Hildenbrand
On 25.08.25 19:06, I Viswanath wrote: As per Documentation/process/deprecated.rst, dynamic size calculations should not be performed in memory allocator arguments due to possible overflows. Replaced malloc with calloc to avoid open-ended arithmetic and prevent possible overflows. Signed-off-by:

Re: [PATCH] selftests/mm: use calloc instead of malloc in pagemap_ioctl.c

2025-08-25 Thread Vishal Moola (Oracle)
On Mon, Aug 25, 2025 at 10:36:43PM +0530, I Viswanath wrote: > As per Documentation/process/deprecated.rst, dynamic size calculations > should not be performed in memory allocator arguments due to possible > overflows. > > Replaced malloc with calloc to avoid open-ended arithmetic > and prevent po

[PATCH] selftests/mm: use calloc instead of malloc in pagemap_ioctl.c

2025-08-25 Thread I Viswanath
As per Documentation/process/deprecated.rst, dynamic size calculations should not be performed in memory allocator arguments due to possible overflows. Replaced malloc with calloc to avoid open-ended arithmetic and prevent possible overflows. Signed-off-by: I Viswanath --- Even though the argume