ERROR: buffer overflow in receive_file_entry

Craig Barratt craig at
Mon Oct 21 20:27:39 EST 2002

> has anyone seen this error:
> ns1: /acct/peter> rsync
> overflow: flags=0xe8 l1=3 l2=20709376 lastname=.
> ERROR: buffer overflow in receive_file_entry
> rsync error: error allocating core memory buffers (code 22) at util.c(238)
> ns1: /acct/peter> 

Either something is wrong with your setup or configuration or this
is a bug.  The packed file list data sent right at the start is
not being decoded correctly.  l1=3 means that 3 bytes of the full
name should be kept, but lastname = "." is just a single character
long.  Also, l2=20709376 looks like ascii, not a small integer.
The flag value 0xe8 is maybe ok: long file name, same mtime, same
dir, same_uid.

It would be great if you could debug this further.  I would first
try to find a small set of files on which you get the error, then
add some debug prints to writefd_unbuffered() to print what the
sender is sending, and to read_unbuffered() to print what the
receiver is reading.  Then look for 0xe8 03 76 93 70 20 in the
output (byte reversed from the error), and see what is a little
before that.


More information about the rsync mailing list