Browse Source
lseek will return -1 on error, g_malloc0(size) and read(,,size) paramenters cannot be negative. We should add a check for return value of lseek(). Signed-off-by: Gonglei <arei.gonglei@huawei.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>pull/17/head
committed by
Paolo Bonzini
1 changed files with 13 additions and 0 deletions
Loading…
Reference in new issue