]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Allow translations in client allocated shared memory. Fixes #210322.
authorTom Hughes <tom@compton.nu>
Mon, 12 Oct 2009 13:53:12 +0000 (13:53 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 12 Oct 2009 13:53:12 +0000 (13:53 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10903

coregrind/m_translate.c

index 8ff300fb15ce1e190506f358cc26de4667b6deaa..f7149ddb77f61eade3f5b14823f5b32b62f9772b 100644 (file)
@@ -698,7 +698,7 @@ static Bool translations_allowable_from_seg ( NSegment const* seg )
    Bool allowR = False;
 #  endif
    return seg != NULL
-          && (seg->kind == SkAnonC || seg->kind == SkFileC)
+          && (seg->kind == SkAnonC || seg->kind == SkFileC || seg->kind == SkShmC)
           && (seg->hasX || (seg->hasR && allowR));
 }