[PATCH 0/3] qemu: fix off-by-one memory allocation

Peter Krempa pkrempa at redhat.com
Tue Mar 17 15:05:12 UTC 2020


String list was allocated without extra element.

Peter Krempa (3):
  qemuBlockBitmapsHandleCommitStart: Fix allocation of string list
  qemuBlockBitmapsHandleCommitFinish: Use proper variable to iterate
  qemublocktest: Add tests for re-enabling of bitmaps after commit

 src/qemu/qemu_block.c                         |  4 +-
 .../bitmap/snapshots-synthetic-broken.json    | 18 ++++++++
 .../bitmap/snapshots-synthetic-broken.out     |  2 +
 .../snapshots-synthetic-broken-1-2            | 30 ++++++++++++
 .../snapshots-synthetic-broken-1-3            | 46 +++++++++++++++++++
 .../snapshots-synthetic-broken-1-4            | 46 +++++++++++++++++++
 .../snapshots-synthetic-broken-1-5            | 46 +++++++++++++++++++
 .../snapshots-synthetic-broken-2-3            | 46 +++++++++++++++++++
 .../snapshots-synthetic-broken-2-4            | 46 +++++++++++++++++++
 .../snapshots-synthetic-broken-2-5            | 46 +++++++++++++++++++
 10 files changed, 328 insertions(+), 2 deletions(-)

-- 
2.24.1




More information about the libvir-list mailing list