qemu-e2k/include
Markus Armbruster d09acb9b5e fw_cfg: Splash image loader can overrun a stack variable, fix
read_splashfile() passes the address of an int variable as size_t *
parameter to g_file_get_contents(), with a cast to gag the compiler.

No problem on machines where sizeof(size_t) == sizeof(int).

Happens to work on my x86_64 box (64 bit little endian): the least
significant 32 bits of the file size end up in the right place
(caller's variable file_size), and the most significant 32 bits
clobber a place that gets assigned to before its next use (caller's
variable file_type).

I'd expect it to break on a 64 bit big-endian box.

Fix up the variable types and drop the problematic cast.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
2013-01-26 13:23:33 +00:00
..
block aio: Fix return value of aio_poll() 2013-01-17 10:51:42 +01:00
bt
char chardev: fix QemuOpts lifecycle 2013-01-16 06:58:53 +01:00
disas
exec tci: Fix broken build (regression) 2013-01-19 20:01:57 +00:00
fpu softfloat: Implement uint64_to_float128 2013-01-05 10:12:50 +00:00
migration migration: move beginning stage to the migration thread 2013-01-17 13:54:18 +01:00
monitor
net HMP: add QDict to info callback handler 2013-01-17 10:24:52 -02:00
qapi
qemu bswap: improve gluing 2013-01-16 19:31:18 -06:00
qom qom: Extend documentation on QOM method concepts 2013-01-17 07:33:16 -06:00
sysemu fw_cfg: Splash image loader can overrun a stack variable, fix 2013-01-26 13:23:33 +00:00
ui pixman: fix warning 2013-01-12 12:42:55 +00:00
config.h
elf.h
libfdt_env.h fdt: Use bswapN instead of bswap_N 2013-01-12 12:22:58 +00:00
qemu-common.h qemu-common.h: Make qemu_init_vcpu() stub static inline 2013-01-08 21:03:44 +01:00
trace.h build: some simplifications for "trace/Makefile.objs" 2013-01-12 18:42:51 +01:00