Peter Wu f6e6652d7c block/dmg: validate chunk size to avoid overflow
Previously the chunk size was not checked, allowing for a large memory
allocation. This patch checks whether the chunks size is within the
resource fork length, and whether the resource fork is below the
trailer of the dmg file.

Signed-off-by: Peter Wu <peter@lekensteyn.nl>
Reviewed-by: John Snow <jsnow@redhat.com>
Message-id: 1420566495-13284-6-git-send-email-peter@lekensteyn.nl
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2015-02-06 17:24:21 +01:00
2015-02-02 16:55:10 +01:00
2013-04-18 13:50:53 +02:00
2015-01-29 16:45:45 +00:00
2014-11-14 12:15:40 +01:00
2015-02-05 17:16:14 +01:00
2015-02-03 13:42:40 +01:00
2015-02-06 13:46:12 +00:00
2015-02-03 21:37:16 +00:00
2015-02-02 16:55:10 +01:00
2012-09-07 09:02:44 +03:00
2014-06-16 13:24:35 +02:00
2013-09-05 09:40:31 -05:00
2013-10-11 09:34:56 -07:00
2008-10-12 17:54:42 +00:00
2015-02-02 16:55:11 +01:00
2015-01-07 16:16:26 +01:00
2015-01-26 12:27:05 +01:00
2013-07-23 02:41:31 +02:00
2014-10-24 12:19:11 +01:00
2014-09-26 13:37:06 -04:00
2015-02-06 14:35:52 +00:00
2015-02-05 17:16:14 +01:00
2015-02-06 14:35:52 +00:00
2014-12-10 10:31:12 +01:00
2015-01-22 17:41:59 +00:00
2015-01-15 10:44:13 +03:00
2014-12-12 15:48:26 +00:00
2014-05-24 00:07:29 +04:00
2015-02-05 17:16:14 +01:00
2013-10-11 09:34:56 -07:00
2015-01-14 10:38:57 +01:00
2014-02-17 11:57:23 -05:00
2015-02-06 17:24:21 +01:00
2014-06-05 16:10:33 +02:00
2014-12-09 21:48:34 +00:00
2013-10-11 09:34:56 -07:00

Read the documentation in qemu-doc.html or on http://wiki.qemu-project.org

- QEMU team
Description
No description provided
Readme 518 MiB
Languages
C 83%
C++ 7.7%
Python 3%
Dylan 2.2%
Shell 1.8%
Other 2.1%