Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e20c5e9
)
added some more debug info to the "buffer overflow in
author
Andrew Tridgell
<tridge@samba.org>
Mon, 24 Jan 2000 08:16:57 +0000
(08:16 +0000)
committer
Andrew Tridgell
<tridge@samba.org>
Mon, 24 Jan 2000 08:16:57 +0000
(08:16 +0000)
receive_file_entry" message
flist.c
patch
|
blob
|
blame
|
history
diff --git
a/flist.c
b/flist.c
index
14fa5a3
..
2dcbe75
100644
(file)
--- 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);