aboutsummaryrefslogtreecommitdiff
path: root/tests/test-qobject-output-visitor.c
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2020-02-11 10:48:59 +0100
committerMichael Roth <mdroth@linux.vnet.ibm.com>2020-06-02 10:48:40 -0500
commitab7f6eaa5bc9f5cd95274089ab869680dddc77f8 (patch)
tree8f9290cd0a2c144ff8e64ec56bf1471d1adcd11d /tests/test-qobject-output-visitor.c
parentf9854de0d815b0c38a16201e9e11ec61ef84fcf9 (diff)
qcow2: Fix qcow2_alloc_cluster_abort() for external data file
For external data file, cluster allocations return an offset in the data file and are not refcounted. In this case, there is nothing to do for qcow2_alloc_cluster_abort(). Freeing the same offset in the qcow2 file is wrong and causes crashes in the better case or image corruption in the worse case. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Message-Id: <20200211094900.17315-3-kwolf@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com> (cherry picked from commit c3b6658c1a5a3fb24d6c27b2594cf86146f75b22) Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Diffstat (limited to 'tests/test-qobject-output-visitor.c')
0 files changed, 0 insertions, 0 deletions