diff options
| author | John Snow | 2016-02-05 19:12:33 +0100 |
|---|---|---|
| committer | Kevin Wolf | 2016-02-22 09:49:46 +0100 |
| commit | 2875645b65865ec2832579557c30b2e8b03dcccd (patch) | |
| tree | f841ee1b0fb33b3c62a63d23b00c4fbfb6752a8f /include/exec/exec-all.h | |
| parent | etraxfs_dma: Dont forward zero-length payload to clients (diff) | |
| download | qemu-2875645b65865ec2832579557c30b2e8b03dcccd.tar.gz qemu-2875645b65865ec2832579557c30b2e8b03dcccd.tar.xz qemu-2875645b65865ec2832579557c30b2e8b03dcccd.zip | |
qemu-img: initialize MapEntry object
Commit 16b0d555 introduced an issue where we are not initializing
has_filename for the 'next' MapEntry object, which leads to interesting
errors in both Valgrind and Clang -fsanitize=undefined.
Zero the stack object at allocation AND make sure the utility to
populate the fields properly marks has_filename as false if applicable.
Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include/exec/exec-all.h')
0 files changed, 0 insertions, 0 deletions
