diff options
author | Juergen Lock <nox@FreeBSD.org> | 2008-07-08 18:42:09 +0000 |
---|---|---|
committer | Juergen Lock <nox@FreeBSD.org> | 2008-07-08 18:42:09 +0000 |
commit | 54b840b37a44ced448a8ad0f47740ce08278f643 (patch) | |
tree | d4801d39b61ef12632cbef1176de598a3d1658c2 /emulators/qemu-devel/files/patch-CVE-2008-2004 | |
parent | - New port: plt-scheme (diff) |
- Update to 20080620 svn snapshot, which uses the new kqemu-kmod-devel
port that now also works for the 32 bit "qemu" executable on amd64
(if you build with the KQEMU knob on, you have to deinstall the old
kqemu-kmod first if it is installed)
- Add an ALL_TARGETS knob that, if turned off, omits the remaining dyngen
targets, eliminating the need for gcc 3.4 (everything but ppc and sh4
has been converted to tcg in this snapshot)
- Add tcg fixes for amd64 guests on i386 hosts (two of three have been
committed to qemu svn in the meantime) [1]
- Update the pkg-message about kqemu on amd64, and add a note about using
nfs with slirp, the latter [2]
- Homepage now at http://bellard.org/qemu/ - update links
Submitted by: nox [1]
Submitted by: joerg [2]
Notes
Notes:
svn path=/head/; revision=216547
Diffstat (limited to 'emulators/qemu-devel/files/patch-CVE-2008-2004')
-rw-r--r-- | emulators/qemu-devel/files/patch-CVE-2008-2004 | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/emulators/qemu-devel/files/patch-CVE-2008-2004 b/emulators/qemu-devel/files/patch-CVE-2008-2004 deleted file mode 100644 index 1e60749606b8..000000000000 --- a/emulators/qemu-devel/files/patch-CVE-2008-2004 +++ /dev/null @@ -1,60 +0,0 @@ -Index: qemu/vl.c -=================================================================== ---- vl.c (revision 4276) -+++ vl.c (revision 4277) -@@ -4961,6 +4961,7 @@ - int bus_id, unit_id; - int cyls, heads, secs, translation; - BlockDriverState *bdrv; -+ BlockDriver *drv = NULL; - int max_devs; - int index; - int cache; -@@ -4968,7 +4969,7 @@ - char *str = arg->opt; - char *params[] = { "bus", "unit", "if", "index", "cyls", "heads", - "secs", "trans", "media", "snapshot", "file", -- "cache", NULL }; -+ "cache", "format", NULL }; - - if (check_params(buf, sizeof(buf), params, str) < 0) { - fprintf(stderr, "qemu: unknown parameter '%s' in '%s'\n", -@@ -5136,6 +5137,14 @@ - } - } - -+ if (get_param_value(buf, sizeof(buf), "format", str)) { -+ drv = bdrv_find_format(buf); -+ if (!drv) { -+ fprintf(stderr, "qemu: '%s' invalid format\n", buf); -+ return -1; -+ } -+ } -+ - if (arg->file == NULL) - get_param_value(file, sizeof(file), "file", str); - else -@@ -5238,7 +5247,7 @@ - bdrv_flags |= BDRV_O_SNAPSHOT; - if (!cache) - bdrv_flags |= BDRV_O_DIRECT; -- if (bdrv_open(bdrv, file, bdrv_flags) < 0 || qemu_key_check(bdrv, file)) { -+ if (bdrv_open2(bdrv, file, bdrv_flags, drv) < 0 || qemu_key_check(bdrv, file)) { - fprintf(stderr, "qemu: could not open disk image %s\n", - file); - return -1; -Index: qemu/qemu-doc.texi -=================================================================== ---- qemu-doc.texi (revision 4276) -+++ qemu-doc.texi (revision 4277) -@@ -261,6 +261,10 @@ - @var{snapshot} is "on" or "off" and allows to enable snapshot for given drive (see @option{-snapshot}). - @item cache=@var{cache} - @var{cache} is "on" or "off" and allows to disable host cache to access data. -+@item format=@var{format} -+Specify which disk @var{format} will be used rather than detecting -+the format. Can be used to specifiy format=raw to avoid interpreting -+an untrusted format header. - @end table - - Instead of @option{-cdrom} you can use: |