Whamcloud - gitweb
libextr2fs: handle short reads/writes while creating the qcow file
authorTheodore Ts'o <tytso@mit.edu>
Thu, 25 Apr 2024 21:52:05 +0000 (17:52 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 25 Apr 2024 21:52:05 +0000 (17:52 -0400)
commit8cfc832cf6771c950c9220b6fe8c9df82f577c52
tree15a8f4c81904419af93335daaaf4520c4edceef2
parentd819acefb176188bac3e28e7d56fd80325dfc5ee
libextr2fs: handle short reads/writes while creating the qcow file

This issue was flagged by Coverity, although its analysis was
incorrect.  This isn't actually a memory overrun / security issue, but
rather a functional correctness issue since POSIX allows reads and
writes to be partially completed, and in those cases qcow2_copy_data()
could result in a corrutped qcow2 file.

Addresses-Coverity-Bug: 1531830
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/qcow2.c