No description
Find a file
Alexander Graf 8be656b87c linux-user: Allocate thunk size dynamically
We store all struct types in an array of static size without ever
checking whether we overrun it. Of course some day someone (like me
in another, ancient ALSA enabling patch set) will run into the limit
without realizing it.

So let's make the allocation dynamic. We already know the number of
structs that we want to allocate, so we only need to pass the variable
into the respective piece of code.

Also, to ensure we don't accidently overwrite random memory, add some
asserts to sanity check whether a thunk is actually part of our array.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
2015-06-15 11:36:58 +03:00
audio oss: Remove unused error handling of qemu_set_fd_handler 2015-06-12 13:26:21 +01:00
backends
block
bsd-user
default-configs
disas
docs -----BEGIN PGP SIGNATURE----- 2015-06-12 15:39:05 +01:00
dtc@65cc4d2748
fpu
fsdev
gdb-xml
hw -----BEGIN PGP SIGNATURE----- 2015-06-12 15:39:05 +01:00
include linux-user: Allocate thunk size dynamically 2015-06-15 11:36:58 +03:00
libcacard
libdecnumber
linux-headers
linux-user linux-user: Allocate thunk size dynamically 2015-06-15 11:36:58 +03:00
migration -----BEGIN PGP SIGNATURE----- 2015-06-12 15:39:05 +01:00
net Change qemu_set_fd_handler2(..., NULL, ...) to qemu_set_fd_handler 2015-06-12 13:26:21 +01:00
pc-bios
pixman@87eea99e44
po
qapi qmp/hmp: add rocker device support 2015-06-12 13:42:17 +01:00
qga
qobject
qom
roms
scripts
slirp
stubs iohandler: Change return type of qemu_set_fd_handler to "void" 2015-06-12 13:26:21 +01:00
target-alpha
target-arm
target-cris
target-i386
target-lm32
target-m68k
target-microblaze
target-mips
target-moxie
target-openrisc
target-ppc
target-s390x
target-sh4 target-sh4: remove dead code 2015-06-12 12:02:48 +02:00
target-sparc
target-tricore
target-unicore32
target-xtensa
tcg
tests -----BEGIN PGP SIGNATURE----- 2015-06-12 15:39:05 +01:00
trace
ui Change qemu_set_fd_handler2(..., NULL, ...) to qemu_set_fd_handler 2015-06-12 13:26:21 +01:00
util event-notifier: Always return 0 for posix implementation 2015-06-12 13:26:21 +01:00
.exrc
.gitignore
.gitmodules
.mailmap
.travis.yml
accel.c
aio-posix.c
aio-win32.c
arch_init.c
async.c
balloon.c
block.c
blockdev-nbd.c Change qemu_set_fd_handler2(..., NULL, ...) to qemu_set_fd_handler 2015-06-12 13:26:21 +01:00
blockdev.c
blockjob.c
bootdevice.c
bt-host.c
bt-vhci.c
Changelog
CODING_STYLE
configure
COPYING
COPYING.LIB
coroutine-gthread.c
coroutine-sigaltstack.c
coroutine-ucontext.c
coroutine-win32.c
cpu-exec.c
cpus.c
cputlb.c
device-hotplug.c
device_tree.c
disas.c
dma-helpers.c
dump.c
exec.c
gdbstub.c
HACKING
hmp-commands.hx qmp/hmp: add rocker device support 2015-06-12 13:42:17 +01:00
hmp.c qmp/hmp: add rocker device support 2015-06-12 13:42:17 +01:00
hmp.h qmp/hmp: add rocker device support 2015-06-12 13:42:17 +01:00
iohandler.c iohandler: Change return type of qemu_set_fd_handler to "void" 2015-06-12 13:26:21 +01:00
ioport.c
iothread.c
kvm-all.c
kvm-stub.c
LICENSE
main-loop.c Change qemu_set_fd_handler2(..., NULL, ...) to qemu_set_fd_handler 2015-06-12 13:26:21 +01:00
MAINTAINERS
Makefile
Makefile.objs
Makefile.target
memory.c
memory_mapping.c
module-common.c
monitor.c qmp/hmp: add rocker device support 2015-06-12 13:42:17 +01:00
nbd.c
numa.c
os-posix.c
os-win32.c
page_cache.c
qapi-schema.json qmp/hmp: add rocker device support 2015-06-12 13:42:17 +01:00
qdev-monitor.c
qdict-test-data.txt
qemu-bridge-helper.c
qemu-char.c
qemu-coroutine-io.c
qemu-coroutine-lock.c
qemu-coroutine-sleep.c
qemu-coroutine.c
qemu-doc.texi
qemu-img-cmds.hx
qemu-img.c
qemu-img.texi
qemu-io-cmds.c
qemu-io.c
qemu-log.c
qemu-nbd.c
qemu-nbd.texi
qemu-options-wrapper.h
qemu-options.h
qemu-options.hx
qemu-seccomp.c
qemu-tech.texi
qemu-timer.c
qemu.nsi
qemu.sasl
qjson.c
qmp-commands.hx qmp/hmp: add rocker device support 2015-06-12 13:42:17 +01:00
qmp.c
qtest.c
README
rules.mak
softmmu_template.h
spice-qemu-char.c
tcg-runtime.c
tci.c
thread-pool.c
thunk.c linux-user: Allocate thunk size dynamically 2015-06-15 11:36:58 +03:00
tpm.c
trace-events MIPS patches 2015-06-12 2015-06-12 12:49:40 +01:00
translate-all.c
translate-all.h
user-exec.c
VERSION
version.rc
vl.c
xen-common-stub.c
xen-common.c
xen-hvm-stub.c
xen-hvm.c
xen-mapcache.c

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

- QEMU team