]> xenbits.xensource.com Git - qemu-xen.git/commit
block/dmg: process a buffer instead of reading ints
authorPeter Wu <peter@lekensteyn.nl>
Tue, 6 Jan 2015 17:48:07 +0000 (18:48 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 6 Feb 2015 16:24:21 +0000 (17:24 +0100)
commit7aee37b93a4f694cdd670807f30b8efd33d0c721
treed692508cea485ffe893735b53cab0af9543a040d
parentb0e8dc5d54225d2e7012bd306e62ac90ba6fc1ea
block/dmg: process a buffer instead of reading ints

As the decoded plist XML is not a pointer in the file,
dmg_read_mish_block must be able to process a buffer instead of a file
pointer. Since the full buffer must be processed, let's change the
return value again to just a success flag.

Signed-off-by: Peter Wu <peter@lekensteyn.nl>
Reviewed-by: John Snow <jsnow@redhat.com>
Message-id: 1420566495-13284-5-git-send-email-peter@lekensteyn.nl
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/dmg.c