Fix bug introduced by checkin 22920, allow large
authorjra <jra@0c0555d6-39d7-0310-84fc-f1cc0bd64818>
Mon, 9 Jul 2007 00:48:07 +0000 (00:48 +0000)
committerjra <jra@0c0555d6-39d7-0310-84fc-f1cc0bd64818>
Mon, 9 Jul 2007 00:48:07 +0000 (00:48 +0000)
commitd0bf86a653e09464ab504e57f2ed759e83d08b34
treeaad1fe5ba1c8fdf5e7e1ba2c2eadcb2ef025cc04
parent732a4e005c9d0b60296d12628702a5fe4ad217fe
Fix bug introduced by checkin 22920, allow large
readX. Fix from Dmitry Shatrov <dhsatrov@linux.vnet.ibm.com>.

"In send_file_readX(), if startpos > sbuf.st_size, then smb_maxcnt is set
to an invalid large value due to integer overflow.
As for me, this resulted in MS Word hanging while trying to save
a 1.5Mb document."

This isn't in shipping code.

Jeremy.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@23752 0c0555d6-39d7-0310-84fc-f1cc0bd64818
source/smbd/reply.c