|
From: <sv...@va...> - 2015-05-22 10:34:34
|
Author: florian
Date: Fri May 22 11:34:27 2015
New Revision: 15275
Log:
Robustness: Output parameter should be initialised on all paths.
Modified:
branches/ASPACEM_TWEAKS/coregrind/m_aspacemgr/aspacemgr-linux.c
Modified: branches/ASPACEM_TWEAKS/coregrind/m_aspacemgr/aspacemgr-linux.c
==============================================================================
--- branches/ASPACEM_TWEAKS/coregrind/m_aspacemgr/aspacemgr-linux.c (original)
+++ branches/ASPACEM_TWEAKS/coregrind/m_aspacemgr/aspacemgr-linux.c Fri May 22 11:34:27 2015
@@ -2639,11 +2639,12 @@
Bool d;
SysRes sres;
+ *need_discard = False;
+
if (!VG_IS_PAGE_ALIGNED(start))
goto eINVAL;
if (len == 0) {
- *need_discard = False;
return VG_(mk_SysRes_Success)( 0 );
}
@@ -3222,6 +3223,8 @@
SysRes sres;
NSegment seg;
+ *need_discard = False;
+
if (old_len == 0 || new_len == 0)
return False;
|