Fix buffer overflow bug when building the target file.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12402
This commit is contained in:
Philippe Waroquiers 2012-02-24 11:25:58 +00:00
parent 8bdfefff73
commit fab0c4b100

View File

@ -553,7 +553,7 @@ void handle_query (char *arg_own_buf, int *new_packet_len_p)
}
{
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;