mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-08 21:09:49 +00:00
Don't do strlen on ui->compdir if it is NULL. Duh.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3920
This commit is contained in:
@@ -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 */)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user