Re: [libvirt PATCH 2/4] virfile: Use VIR_MAX_FILE_LEN instead of INT_MAX to limit file size

2021-07-21 Thread Peter Krempa
On Wed, Jul 21, 2021 at 14:46:41 +0200, Tim Wiederhake wrote: > The use of INT_MAX as maximum file length is problematic for reasons > discussed in the next commit. > > Signed-off-by: Tim Wiederhake > --- > tests/networkxml2firewalltest.c | 2 +- > tests/testutils.c | 5 +++-- > 2

[libvirt PATCH 2/4] virfile: Use VIR_MAX_FILE_LEN instead of INT_MAX to limit file size

2021-07-21 Thread Tim Wiederhake
The use of INT_MAX as maximum file length is problematic for reasons discussed in the next commit. Signed-off-by: Tim Wiederhake --- tests/networkxml2firewalltest.c | 2 +- tests/testutils.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git