jsp.message.jsp_removed_excess=Removing excess JSP for path [{0}] from queue of context [{1}]
jsp.message.jsp_removed_idle=Removing idle JSP for path [{0}] in context [{1}] after {2} seconds");
jsp.message.jsp_unload_check=Checking JSPs for unload in context [{0}], JSP count: {1} queue length: {2}
+
+xmlParser.skipBomFail=Failed to skip BOM when parsing XML input stream
\ No newline at end of file
import org.apache.jasper.JspCompilationContext;
import org.apache.jasper.compiler.ErrorDispatcher;
import org.apache.jasper.compiler.JspUtil;
+import org.apache.jasper.compiler.Localizer;
public class XMLEncodingDetector {
int b2 = b4[2] & 0xFF;
if (b0 == 0xEF && b1 == 0xBB && b2 == 0xBF) {
// ignore first three bytes...
- stream.skip(3);
+ long skipped = stream.skip(3);
+ if (skipped != 3) {
+ throw new IOException(Localizer.getMessage(
+ "xmlParser.skipBomFail"));
+ }
}
}
reader = createReader(stream, encoding, isBigEndian);
<Match>
<Class name="org.apache.el.parser.ParseException" />
</Match>
+ <Match>
+ <!-- fCurrentEntity may be null after endEntity() call -->
+ <Class name="org.apache.jasper.xmlparser.XMLEncodingDetector" />
+ <Method name="load" />
+ <Bug code="RCN" />
+ </Match>
<!-- Test code -->
<Match>