Re: [Qemu-devel] [PATCH] elf-loader: Fix truncation warning from coverity

2015-03-19 Thread Michael Tokarev
Applied to -trivial, thanks! /mjt

Re: [Qemu-devel] [PATCH] elf-loader: Fix truncation warning from coverity

2015-03-16 Thread Thomas Huth
On Sat, 14 Mar 2015 09:37:08 +0100 Stefan Weil wrote: > Coverity reports a truncation due to cast operation on operand > reltab->sh_size from 64 bits to 32 bits for calls of load_at. > > Fix the types of the function arguments to match their use in > function load_at: the offset is used for lsee

[Qemu-devel] [PATCH] elf-loader: Fix truncation warning from coverity

2015-03-14 Thread Stefan Weil
Coverity reports a truncation due to cast operation on operand reltab->sh_size from 64 bits to 32 bits for calls of load_at. Fix the types of the function arguments to match their use in function load_at: the offset is used for lseek which takes an off_t parameter, the size is used for g_malloc an