Peter Maydell
7dd47667b9
linux-user/elfload.c: Don't memset(NULL..) if malloc() failed
...
If a malloc() in copy_elf_strings() failed we would call memset()
before the "did malloc fail?" check. Fix this by moving to the
glib alloc/free routines for this memory so we can use g_try_malloc0
rather than having a separate memset(). Spotted by Coverity (see
bug 887883).
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2011-11-11 12:49:53 -06:00
..
2011-07-11 16:12:51 +03:00
2011-07-11 16:12:51 +03:00
2011-07-11 16:12:51 +03:00
2011-07-11 16:12:51 +03:00
2011-07-11 16:12:51 +03:00
2011-07-11 16:12:51 +03:00
2011-07-11 16:12:51 +03:00
2011-07-11 16:12:51 +03:00
2011-07-11 16:12:51 +03:00
2011-07-11 16:12:51 +03:00
2011-07-11 16:12:51 +03:00
2011-07-13 17:11:37 +03:00
2011-10-27 14:43:10 +03:00
2011-07-11 16:12:51 +03:00
2011-04-12 18:48:43 +00:00
2011-07-11 16:12:51 +03:00
2010-02-06 17:19:43 +01:00
2010-02-06 17:19:43 +01:00
2011-11-11 12:49:53 -06:00
2008-12-13 09:32:43 +00:00
2007-10-14 16:27:31 +00:00
2011-06-21 20:30:10 +03:00
2011-07-11 16:12:18 +03:00
2008-05-23 16:06:43 +00:00
2011-11-11 12:49:53 -06:00
2010-10-05 13:53:56 -05:00
2011-10-27 14:43:30 +03:00
2011-05-08 10:02:18 +01:00
2011-10-27 14:42:16 +03:00
2011-09-09 10:46:02 +03:00
2011-10-31 15:05:40 -05:00
2007-12-10 08:24:59 +00:00
2011-10-27 14:42:16 +03:00
2011-04-26 10:15:40 +03:00
2011-10-27 14:42:16 +03:00
2011-07-11 16:12:18 +03:00
2011-11-09 12:06:20 -06:00
2011-02-09 10:33:54 +02:00
2009-07-01 18:24:44 +00:00
2011-10-27 14:42:16 +03:00