From e40e2c0cee8d7a1eb0f32935f5030083028cfc09 Mon Sep 17 00:00:00 2001 From: Julian Seward Date: Fri, 17 Jun 2005 13:06:53 +0000 Subject: [PATCH] Don't do strlen on ui->compdir if it is NULL. Duh. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3920 --- coregrind/m_debuginfo/dwarf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/coregrind/m_debuginfo/dwarf.c b/coregrind/m_debuginfo/dwarf.c index 714a278bb..3b89dbef4 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 */) {