You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@santuario.apache.org by Nedelcho Stanev <de...@gmx.co.uk> on 2004/05/25 16:03:42 UTC
bug in transcodeFromUTF8 function
Hello all,
there are one small bug in this function.
and when package of data is more than 2048 bytes exception occurs
problem come from loop where we pass trough original source
line 347
int toEat = ( bytesToEat > 2048 ? 2048 : bytesToEat );
must be replaced
int toEat = ((bytesToEat - totalBytesEaten) > 2048 ? 2048 : bytesToEat - totalBytesEaten);
in this case calcuation of size is ok, and function works perfect
regards,
decho