[PATCH 0/4] virbitmap: Fix buffer overflow when shrinking a bitmap and copying it

Peter Krempa posted 4 patches 2 weeks, 1 day ago
src/util/virbitmap.c | 84 +++++++++++++++++++++-----------------------
1 file changed, 40 insertions(+), 44 deletions(-)
[PATCH 0/4] virbitmap: Fix buffer overflow when shrinking a bitmap and copying it
Posted by Peter Krempa 2 weeks, 1 day ago
See patches for rationale.

Peter Krempa (4):
  virBitmapNewCopy: Honor sizes of either bitmap when doing memcpy()
  virbitmap: Extract and reuse buffer size calculation into a function
  util: virbitmap: Extract clearing of unused bits at the end of the
    last unit
  util: bitmap: Rewrite virBitmapShrink using new helpers

 src/util/virbitmap.c | 84 +++++++++++++++++++++-----------------------
 1 file changed, 40 insertions(+), 44 deletions(-)

-- 
2.47.0
Re: [PATCH 0/4] virbitmap: Fix buffer overflow when shrinking a bitmap and copying it
Posted by Jiri Denemark 2 weeks, 1 day ago
On Thu, Oct 17, 2024 at 14:09:08 +0200, Peter Krempa wrote:
> See patches for rationale.
> 
> Peter Krempa (4):
>   virBitmapNewCopy: Honor sizes of either bitmap when doing memcpy()
>   virbitmap: Extract and reuse buffer size calculation into a function
>   util: virbitmap: Extract clearing of unused bits at the end of the
>     last unit
>   util: bitmap: Rewrite virBitmapShrink using new helpers
> 
>  src/util/virbitmap.c | 84 +++++++++++++++++++++-----------------------
>  1 file changed, 40 insertions(+), 44 deletions(-)

Reviewed-by: Jiri Denemark <jdenemar@redhat.com>