From d0fd26aa168610ae625cce72226e27e6134c678f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 24 Jan 2000 08:16:57 +0000 Subject: [PATCH] added some more debug info to the "buffer overflow in receive_file_entry" message --- flist.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/flist.c b/flist.c index 14fa5a3f..2dcbe756 100644 --- a/flist.c +++ b/flist.c @@ -299,7 +299,11 @@ static void receive_file_entry(struct file_struct **fptr, memset((char *)file, 0, sizeof(*file)); (*fptr) = file; - if (l2 >= MAXPATHLEN-l1) overflow("receive_file_entry"); + if (l2 >= MAXPATHLEN-l1) { + rprintf(FERROR,"overflow: flags=0x%x l1=%d l2=%d lastname=%s\n", + flags, l1, l2, lastname); + overflow("receive_file_entry"); + } strlcpy(thisname,lastname,l1+1); read_sbuf(f,&thisname[l1],l2); -- 2.34.1