Kevin Wolf 5dae6e30c5 qcow2: Limit snapshot table size
Even with a limit of 64k snapshots, each snapshot could have a filename
and an ID with up to 64k, which would still lead to pretty large
allocations, which could potentially lead to qemu aborting. Limit the
total size of the snapshot table to an average of 1k per entry when
the limit of 64k snapshots is fully used. This should be plenty for any
reasonable user.

This also fixes potential integer overflows of s->snapshot_size.

Suggested-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2014-04-01 15:22:35 +02:00
2014-04-01 15:22:35 +02:00
…
2014-03-31 19:53:34 +01:00
2014-03-31 19:28:38 +02:00
2014-03-13 20:15:37 +01:00
2013-08-07 12:48:00 -05:00
2014-03-03 09:46:27 +04:00
2014-03-13 20:15:37 +01:00
2014-03-25 14:09:50 +01:00
2014-03-26 05:33:02 +01:00
…
2014-03-12 17:26:32 +01:00
2013-09-05 09:40:31 -05:00
…
…
…
2013-10-11 09:34:56 -07:00
…
2014-03-19 19:47:15 +01:00
2013-07-23 02:41:31 +02:00
2014-03-13 14:42:24 +01:00
2013-08-12 09:15:12 -05:00
2014-03-17 11:50:19 +00:00
2014-03-13 14:42:24 +01:00
2013-09-03 12:25:55 +02:00
2014-03-27 15:19:00 +05:30
2014-02-21 21:02:23 +01:00
2014-03-13 14:34:16 +00:00
2014-02-25 14:30:28 +01:00
2014-03-27 15:19:00 +05:30
2014-03-17 13:21:11 +01:00
2013-12-04 15:19:00 +01:00
2014-03-05 03:06:24 +01:00
2013-10-11 09:34:56 -07:00
2014-03-27 15:19:00 +05:30
2013-09-25 21:23:05 +02:00
…
2014-02-17 11:57:23 -05:00
2014-03-27 15:19:00 +05:30
2014-03-13 20:08:15 -07:00
2013-10-11 09:34:56 -07:00
2014-03-27 15:19:00 +05:30
…

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

- QEMU team
S
Description
Original Xbox Emulator for Windows, macOS, and Linux (Active Development)
Readme GPL-2.0
724 MiB
0 Stars 1 Watchers 0 Forks
Languages
C 82.3%
C++ 6.9%
Python 3.5%
Dylan 2.7%
Shell 1.5%
Other 2.9%