[Mono-devel-list] reading stream bug..

Subba Rao Thirumoorthy subbarao at network2.cs.usm.my
Sun Dec 21 22:24:49 EST 2003


thanks alot it worked like a charm,: )
really appreciate ur help,
sorry meant framework 1.1
and sorry for flooding with big image.

regards
-rao-
----- Original Message ----- 
From: "Sébastien Pouliot" <spouliot at videotron.ca>
To: "Subba Rao Thirumoorthy" <subbarao at network2.cs.usm.my>;
<mono-devel-list at lists.ximian.com>
Sent: Sunday, December 21, 2003 4:07 AM
Subject: RE: [Mono-devel-list] reading stream bug..


> Subba Rao,
>
> A quick patch to your problem would be to change the line
> while((len = CryptStream.Read(Buffer,0,1023)) != 0)
> into
> while((len = CryptStream.Read(Buffer,0,1024)) != 0)
>
> because (a) your buffer is 1024 bytes and (b) more important it's a
multiple
> of the block size.
> This will work with both MS.NET and Mono (Linux and Windows).
>
> The bug is probably due to the fact that CryptoStream don't return the
good
> value - which mix up the calculations.
>
> >> > in windows using framework 1.4 it works fine..
>
> framework 1.4 ? are you sending this from the future ? ;-)
>
> If you find anything else please report it into bugzilla
> http://bugzilla.ximian.com/enter_bug.cgi?product=Mono%2FClass%20Libraries
> so the issue is not lost (e.g. during xmas vacations). It's also easier
(for
> the reporter) to be notified when the issue is fixed.
>
> BTW the image is beautiful but a little big to send to a mailing list.
>
> Thanks,
> Sebastien Pouliot
> Security Architect, Motus Technologies, http://www.motus.com
> work: spouliot at motus.com
> home: spouliot at videotron.ca
> blog: http://pages.infinit.net/ctech/poupou.html





More information about the Mono-devel-list mailing list