Re: [PATCH] dwfl: fix potential overflow when reporting on kernel modules

2021-11-19 Thread Mark Wielaard
Hi, On Fri, Nov 19, 2021 at 01:04:39AM +0300, Dmitry V. Levin wrote: > On Thu, Nov 18, 2021 at 07:44:50PM +, Matthias Maennich via > Elfutils-devel wrote: > > dwfl_linux_kernel_report_modules_ has an outstanding ancient bug when > > reading kernel module information from a modules list file.

Re: [PATCH] dwfl: fix potential overflow when reporting on kernel modules

2021-11-18 Thread Dmitry V. Levin
On Thu, Nov 18, 2021 at 07:44:50PM +, Matthias Maennich via Elfutils-devel wrote: > dwfl_linux_kernel_report_modules_ has an outstanding ancient bug when > reading kernel module information from a modules list file. The target > buffer for the module name was sized too small to hold potential

[PATCH] dwfl: fix potential overflow when reporting on kernel modules

2021-11-18 Thread Matthias Maennich via Elfutils-devel
dwfl_linux_kernel_report_modules_ has an outstanding ancient bug when reading kernel module information from a modules list file. The target buffer for the module name was sized too small to hold potential values. Fix that by increasing the value to account for the null termination. In practice, t