|
From: <sv...@va...> - 2006-05-22 11:16:01
|
Author: tom
Date: 2006-05-22 12:15:47 +0100 (Mon, 22 May 2006)
New Revision: 5919
Log:
Validate the fnIdx for a file segment when doing a sanity check.
Modified:
trunk/coregrind/m_aspacemgr/aspacemgr.c
Modified: trunk/coregrind/m_aspacemgr/aspacemgr.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_aspacemgr/aspacemgr.c 2006-05-22 00:09:51 UTC (rev =
5918)
+++ trunk/coregrind/m_aspacemgr/aspacemgr.c 2006-05-22 11:15:47 UTC (rev =
5919)
@@ -932,6 +932,8 @@
case SkFileC: case SkFileV:
return=20
s->smode =3D=3D SmFixed
+ && (s->fnIdx =3D=3D -1 ||
+ (s->fnIdx >=3D 0 && s->fnIdx < segnames_used && segnames=
[s->fnIdx].inUse))
&& !s->isCH;
=20
case SkResvn:=20
|