Quantcast

Valgrind: r16221 - /trunk/coregrind/m_aspacemgr/aspacemgr-linux.c

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Valgrind: r16221 - /trunk/coregrind/m_aspacemgr/aspacemgr-linux.c

svn-2
Author: sewardj
Date: Wed Feb  8 08:27:34 2017
New Revision: 16221

Log:
am_munmap_both_wrk: safely initialise out-param for all return paths.
Silences what I think is a false complaint from gcc at -O3.

Modified:
    trunk/coregrind/m_aspacemgr/aspacemgr-linux.c

Modified: trunk/coregrind/m_aspacemgr/aspacemgr-linux.c
==============================================================================
--- trunk/coregrind/m_aspacemgr/aspacemgr-linux.c (original)
+++ trunk/coregrind/m_aspacemgr/aspacemgr-linux.c Wed Feb  8 08:27:34 2017
@@ -2773,6 +2773,9 @@
    Bool   d;
    SysRes sres;
 
+   /* Be safe with this regardless of return path. */
+   *need_discard = False;
+
    if (!VG_IS_PAGE_ALIGNED(start))
       goto eINVAL;
 


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Valgrind-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/valgrind-developers
Loading...