aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulio Faracco <jcfaracco@gmail.com>2018-12-28 12:50:55 -0200
committerStefan Hajnoczi <stefanha@redhat.com>2019-01-04 11:06:02 +0000
commitb47c7d53252d46811c555bc08aeb9918fd7dbd24 (patch)
tree4887bbeea5fc800e99fb829854671090dee8a111
parent20d6c7312f1b812bb9c750f4087f69ac8485cc90 (diff)
downloadqemu-b47c7d53252d46811c555bc08aeb9918fd7dbd24.zip
qemu-b47c7d53252d46811c555bc08aeb9918fd7dbd24.tar.gz
qemu-b47c7d53252d46811c555bc08aeb9918fd7dbd24.tar.bz2
dmg: Fixing wrong dmg block type value for block terminator.
This is a trivial patch to fix a wrong value for block terminator. The old value was 0x7fffffff which is wrong. It was not affecting the code because QEMU dmg block is not handling block terminator right now. Neverthless, it should be fixed. Signed-off-by: Julio Faracco <jcfaracco@gmail.com> Reviewed-by: yuchenlin <yuchenlin@synology.com> Message-id: 20181228145055.18039-1-jcfaracco@gmail.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
-rw-r--r--block/dmg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/dmg.c b/block/dmg.c
index 50e91ae..2c806e3 100644
--- a/block/dmg.c
+++ b/block/dmg.c
@@ -54,7 +54,7 @@ enum {
UDBZ,
ULFO,
UDCM = 0x7ffffffe, /* Comments */
- UDLE /* Last Entry */
+ UDLE = 0xffffffff /* Last Entry */
};
static int dmg_probe(const uint8_t *buf, int buf_size, const char *filename)