summaryrefslogtreecommitdiff
path: root/target-arm/gdbstub64.c
diff options
context:
space:
mode:
authorGonglei <arei.gonglei@huawei.com>2014-11-15 18:06:43 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2014-11-17 11:41:56 +0100
commitddd2eab72fbd383a56f439bf278c6d647abd4f54 (patch)
tree210dc126a5658871b2378becc740365ef0fb8644 /target-arm/gdbstub64.c
parent1def74548d8013949c7d4704420d4fdd5fb85268 (diff)
downloadqemu-ddd2eab72fbd383a56f439bf278c6d647abd4f54.zip
loader: fix NEGATIVE_RETURNS
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>
Diffstat (limited to 'target-arm/gdbstub64.c')
0 files changed, 0 insertions, 0 deletions