[Xapian-tickets] [Xapian] #685: 32-bit xapian-replicate fails to copy files larger than 4GB
Xapian
nobody at xapian.org
Wed Sep 16 23:38:25 BST 2015
#685: 32-bit xapian-replicate fails to copy files larger than 4GB
--------------------------------+--------------------
Reporter: joshe | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: Replication | Version: 1.2.15
Severity: normal | Keywords:
Blocked By: | Blocking:
Operating System: Linux |
--------------------------------+--------------------
A 32-bit xapian-replicate binary will fail to receiving a file larger than
4GB. The cause is in RemoteConnection::receive_file(), where the message
length is decoded into a size_t variable. A size_t is unsuitable for
holding a file size, and the server side correctly uses an off_t when
encoding the size.
I have not tried a newer version of xapian however the relevant code
appears unchanged on git master. The attached diff is against 1.2.15
however it looks like it would apply to master with little effort.
--
Ticket URL: <http://trac.xapian.org/ticket/685>
Xapian <http://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list