|
From: <sv...@va...> - 2011-05-04 09:03:50
|
Author: sewardj
Date: 2011-05-04 10:03:41 +0100 (Wed, 04 May 2011)
New Revision: 11722
Log:
handle_maybe_load_notifier: assert when symbol == NULL rather than
segfaulting. Potential segfault was found by IBM's BEAM checker.
Modified:
trunk/coregrind/m_redir.c
Modified: trunk/coregrind/m_redir.c
===================================================================
--- trunk/coregrind/m_redir.c 2011-05-04 09:01:58 UTC (rev 11721)
+++ trunk/coregrind/m_redir.c 2011-05-04 09:03:41 UTC (rev 11722)
@@ -1187,6 +1187,7 @@
/* Normal load-notifier handling after here. First, ignore all
symbols lacking the right prefix. */
+ vg_assert(symbol); // assert rather than segfault if it is NULL
if (0 != VG_(strncmp)(symbol, VG_NOTIFY_ON_LOAD_PREFIX,
VG_NOTIFY_ON_LOAD_PREFIX_LEN))
/* Doesn't have the right prefix */
|