[jcifs] RE: jCIFS corrupt files

Christopher R. Hertel crh at ubiqx.mn.org
Thu Oct 2 14:15:14 EST 2003


"Christopher R. Hertel" wrote:
> 
> "Christopher R. Hertel" wrote:
> :
> > > I don't see how
> > > it can be. Nbt says 4993 - 63 = 4930 = smb.data_length = (0x5EA - 0x85) +
> > > (0x5EA - 0x42) + (0x5EA - 0x42) + (0x2CF - 0x42). Everything adds up.
> >
> > If you use the correct offsets it does, but the correct offsets are wrong,
> > though.
> 
> Ouch!  I can write better than that.
> 
> What I mean is that the correct offsets (the ones I calculated) do add up
> properly.  The problem is that the actual offsets (the ones that were seen
> on the wire) were incorrect.  The error per packet was based on that 66 byte
> formula I kobbled together.
> 
> Anyway, the on-the-wire offsets sent from the jCIFS client were incorrect.

Of course, we have *not* seen any other example of this problem, so I have
to assume that it some interaction between the jCIFS library and the
particular code being used to call the library.

Ch

...ris

      ... -)-----

Oh... and another thing >>Wham<<
      (nevermind).

-- 
"Implementing CIFS - the Common Internet FileSystem" ISBN: 013047116X
Samba Team -- http://www.samba.org/     -)-----   Christopher R. Hertel
jCIFS Team -- http://jcifs.samba.org/   -)-----   ubiqx development, uninq.
ubiqx Team -- http://www.ubiqx.org/     -)-----   crh at ubiqx.mn.org
OnLineBook -- http://ubiqx.org/cifs/    -)-----   crh at ubiqx.org



More information about the jcifs mailing list