|
From: <sv...@va...> - 2012-02-24 11:30:36
|
Author: philippe
Date: 2012-02-24 11:25:58 +0000 (Fri, 24 Feb 2012)
New Revision: 12402
Log:
Fix buffer overflow bug when building the target file.
Modified:
trunk/coregrind/m_gdbserver/server.c
Modified: trunk/coregrind/m_gdbserver/server.c
===================================================================
--- trunk/coregrind/m_gdbserver/server.c 2012-02-24 08:33:56 UTC (rev 12401)
+++ trunk/coregrind/m_gdbserver/server.c 2012-02-24 11:25:58 UTC (rev 12402)
@@ -553,7 +553,7 @@
}
{
- char doc[VG_(strlen)(VG_(libdir)) + 1 + VG_(strlen)(annex)];
+ char doc[VG_(strlen)(VG_(libdir)) + 1 + VG_(strlen)(annex) + 1];
struct vg_stat stat_doc;
char toread[len];
int len_read;
|