On Fri, Mar 27, 2026 at 10:54:35AM +0100, Peter Krempa via Devel wrote:
> Fix the CI failure I've caused, one more instance of the same problem
> that didn't yet cause write beyound buffer, document all the functions
> to prevent users from guessing and remove redundant code.
>
> The last function also optimizes further to prevent over-allocating the
> buffers to read the files.
>
> Peter Krempa (6):
> virPCIDeviceReadClass: Don't write beyond end of buffer from
> virFileReadAll
> virSecretLoadValue: Don't re-termiante the buffer
> virNetDevIPCheckIPv6Forwarding: Don't NUL terminate buffer from
> virFileReadAll
> virPCIDeviceReadID: Fix use of 'virFileReadAll'
> util: virfile: Document the various functions for reading from file/fd
> util: virfile: Don't over-allocate buffers in saferead_lim
With the typos fixed.
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>