]> git.proxmox.com Git - mirror_qemu.git/commitdiff
dmg: Fixing wrong dmg block type value for block terminator.
authorJulio Faracco <jcfaracco@gmail.com>
Fri, 28 Dec 2018 14:50:55 +0000 (12:50 -0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 4 Jan 2019 11:06:02 +0000 (11:06 +0000)
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>
block/dmg.c

index 50e91aef6d938cc3ace1b44da6fc2c24ba6bcc0e..2c806e3389a385b1ffe4973ae687c7d0b6d93391 100644 (file)
@@ -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)