From: Julian Seward Date: Fri, 17 Jun 2005 13:06:53 +0000 (+0000) Subject: Don't do strlen on ui->compdir if it is NULL. Duh. X-Git-Tag: svn/VALGRIND_3_0_0~398 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e40e2c0cee8d7a1eb0f32935f5030083028cfc09;p=thirdparty%2Fvalgrind.git Don't do strlen on ui->compdir if it is NULL. Duh. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3920 --- diff --git a/coregrind/m_debuginfo/dwarf.c b/coregrind/m_debuginfo/dwarf.c index 714a278bb5..3b89dbef41 100644 --- a/coregrind/m_debuginfo/dwarf.c +++ b/coregrind/m_debuginfo/dwarf.c @@ -508,6 +508,8 @@ void read_dwarf2_lineblock ( SegInfo* si, if (*data != '/' /* not an absolute path */ + && ui->compdir != NULL + /* actually got something sensible for compdir */ && VG_(strlen)(ui->compdir) + VG_(strlen)(data) + 5/*paranoia*/ < NBUF /* it's short enough to concatenate */) {