linux-user: Use glib malloc functions in load_symbols()
commit0ef9ea290ed9319cb788ea40be06dd18b32ba05a
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 12 Jul 2016 12:02:18 +0000 (12 13:02 +0100)
committerRiku Voipio <riku.voipio@linaro.org>
Wed, 21 Sep 2016 11:28:20 +0000 (21 14:28 +0300)
treecd426971fd00f9863c2165b22332338153b6465b
parent772034b63e9c0caf6c92e31413f2d8df2ee69c88
linux-user: Use glib malloc functions in load_symbols()

Switch to using the glib malloc functions in load_symbols();
this deals with a Coverity complaint about possible
integer overflow calculating the allocation size with
'nsyms * sizeof(*syms)'.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
linux-user/elfload.c