]> Git Repo - qemu.git/commit - linux-user/elfload.c
linux-user/elfload.c: Avoid calling g_free() on uninitialized data
authorPeter Maydell <[email protected]>
Mon, 17 Feb 2014 18:55:31 +0000 (18:55 +0000)
committerRiku Voipio <[email protected]>
Tue, 18 Feb 2014 14:54:06 +0000 (16:54 +0200)
commit6afafa86f3446f5e6dd410cc2c442e98adabc26c
tree1a92ccfbf311fa0ad777862b232022faad06a557
parent4fc4732047bf475f70b14c83053d7c6b22cb9d2f
linux-user/elfload.c: Avoid calling g_free() on uninitialized data

Avoid calling g_free() on unintialized data in the error-handling
paths in elf_core_dump() by splitting the initialization of the
elf_note_info struct out of fill_note_info() so that it's always
valid to call free_note_info() whether we got to the point of
being able to fill_note_info() or not.

Signed-off-by: Peter Maydell <[email protected]>
Signed-off-by: Riku Voipio <[email protected]>
linux-user/elfload.c
This page took 0.025016 seconds and 4 git commands to generate.