|
From: <sv...@va...> - 2005-06-17 13:07:50
|
Author: sewardj
Date: 2005-06-17 14:06:53 +0100 (Fri, 17 Jun 2005)
New Revision: 3920
Log:
Don't do strlen on ui->compdir if it is NULL. Duh.
Modified:
trunk/coregrind/m_debuginfo/dwarf.c
Modified: trunk/coregrind/m_debuginfo/dwarf.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_debuginfo/dwarf.c 2005-06-17 03:06:27 UTC (rev 3919=
)
+++ trunk/coregrind/m_debuginfo/dwarf.c 2005-06-17 13:06:53 UTC (rev 3920=
)
@@ -508,6 +508,8 @@
=20
if (*data !=3D '/'=20
/* not an absolute path */
+ && ui->compdir !=3D NULL
+ /* actually got something sensible for compdir */
&& VG_(strlen)(ui->compdir) + VG_(strlen)(data) + 5/*paranoia*=
/ < NBUF
/* it's short enough to concatenate */)=20
{
|