|
From: <sv...@va...> - 2008-05-17 15:25:28
|
Author: bart
Date: 2008-05-17 16:22:27 +0100 (Sat, 17 May 2008)
New Revision: 8099
Log:
Fixed assertion failure.
Modified:
branches/CROSS_COMPILATION/coregrind/m_debuginfo/debuginfo.c
Modified: branches/CROSS_COMPILATION/coregrind/m_debuginfo/debuginfo.c
===================================================================
--- branches/CROSS_COMPILATION/coregrind/m_debuginfo/debuginfo.c 2008-05-15 18:18:36 UTC (rev 8098)
+++ branches/CROSS_COMPILATION/coregrind/m_debuginfo/debuginfo.c 2008-05-17 15:22:27 UTC (rev 8099)
@@ -2325,13 +2325,13 @@
vg_assert(start_at < fnlen);
i = start_at; j = 0;
while (True) {
- vg_assert(j >= 0 && j+1 < n_name);
+ vg_assert(j >= 0 && j < n_name);
vg_assert(i >= 0 && i <= fnlen);
name[j] = di->filename[i];
- name[j+1] = 0;
if (di->filename[i] == 0) break;
i++; j++;
}
+ vg_assert(i == fnlen);
} else {
VG_(snprintf)(name, n_name, "%s", "???");
}
|