Re: [PATCH] util_lib/elf_info.c: fix a warning

2024-03-22 Thread Simon Horman
On Thu, Mar 21, 2024 at 03:30:37PM +0800, Baoquan He wrote: > There's a incorrect array operation in function scan_vmcoreinfo(), it > will cause below warning message. > > --- > util_lib/elf_info.c: In function ‘scan_vmcoreinfo’: > util_lib/elf_info.c:360:43: warning: writing

[PATCH] util_lib/elf_info.c: fix a warning

2024-03-21 Thread Baoquan He
There's a incorrect array operation in function scan_vmcoreinfo(), it will cause below warning message. --- util_lib/elf_info.c: In function ‘scan_vmcoreinfo’: util_lib/elf_info.c:360:43: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 360 |