mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
Fix buffer overflow bug when building the target file.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12402
This commit is contained in:
parent
8bdfefff73
commit
fab0c4b100
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user