Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- src/org/apache/xerces/impl/io/UTF8Reader.java 2006-11-23 00:36:53.000000000 +0100
- +++ ../../xerces-2_9_0/src/org/apache/xerces/impl/io/UTF8Reader.java 2007-06-28 02:02:44.000000000 +0200
- @@ -534,6 +534,16 @@
- invalidByte(4, 4, b2);
- }
- + // check if output buffer is large enough to hold 2 surrogate chars
- + if(out + 1 >= ch.length ){
- + fBuffer[0] = (byte)b0;
- + fBuffer[1] = (byte)b1;
- + fBuffer[2] = (byte)b2;
- + fBuffer[3] = (byte)b3;
- + fOffset = 4;
- + return out - offset;
- + }
- +
- // decode bytes into surrogate characters
- int uuuuu = ((b0 << 2) & 0x001C) | ((b1 >> 4) & 0x0003);
- if (uuuuu > 0x10) {
Add Comment
Please, Sign In to add comment