Thread: Bug in setUnicodeStream

Bug in setUnicodeStream

From
"Chris Smith"
Date:
I'm working more on my streaming patch that I posted earlier.

I noticed that setUnicodeStream is specified to take a parameter that
contains the number of bytes to read from the stream... but the
implementation instead treats the parameter as the number of characters to
be read from the stream.  This could cause the stream to get over-read.

I'll fix this in my upcoming patch, since I'm rewriting this piece of code
anyway... but if you don't want the streaming patch I'm working on, you'll
need to deal with this some other way.

--
www.designacourse.com
The Easiest Way to Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation