Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004700 [Resin] minor always 08-05-11 09:36 08-05-11 09:51
Reporter ferg View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version 3.1.9
Summary 0004700: utf8 encoding overflow with surrogate pairs
Description (rep by Shinomiya Nobuaki)

We got ArrayIndexOutOfBoundsException at com.caucho.vfs.i18n.UTF8Writer.write().
It seems to happen when sending a request which includes surrogate pair characters.

java.lang.ArrayIndexOutOfBoundsException: 16384
    at com.caucho.vfs.i18n.UTF8Writer.write(UTF8Writer.java:143)
    at com.caucho.server.connection.ToByteResponseStream.flushCharBuffer(ToByteResponseStream.java:476)
    at com.caucho.server.connection.ToByteResponseStream.print(ToByteResponseStream.java:415)
    at com.caucho.server.connection.ResponseWriter.write(ResponseWriter.java:121)
    at com.caucho.server.connection.ToCharResponseAdapter$ToCharResponseStreamWrapper.writeNext(ToCharResponseAdapter.java:137)
    at com.caucho.server.connection.ToCharResponseStream.flushCharBuffer(ToCharResponseStream.java:391)
    at com.caucho.server.connection.ToCharResponseStream.expandCharBuffer(ToCharResponseStream.java:359)
    at com.caucho.server.connection.ToCharResponseStream.nextCharBuffer(ToCharResponseStream.java:168)
    at com.caucho.jsp.JspWriterAdapter.write(JspWriterAdapter.java:171)
    at com.caucho.jsp.AbstractBodyContent.print(AbstractBodyContent.java:216)
    at com.caucho.el.Expr.toStream(Expr.java:876)
    at com.caucho.el.Expr.print(Expr.java:425)
Additional Information
Attached Files

- Relationships

- Notes
(0005428)
ferg
08-05-11 09:51

server/0818
 

- Issue History
Date Modified Username Field Change
08-05-11 09:36 ferg New Issue
08-05-11 09:51 ferg Note Added: 0005428
08-05-11 09:51 ferg Assigned To  => ferg
08-05-11 09:51 ferg Status new => closed
08-05-11 09:51 ferg Resolution open => fixed
08-05-11 09:51 ferg Fixed in Version  => 4.0.21


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
28 total queries executed.
25 unique queries executed.
Powered by Mantis Bugtracker