MCPcopy Index your code
hub / github.com/apache/tomcat / checkOverflow

Method checkOverflow

java/org/apache/coyote/ajp/AjpMessage.java:229–239  ·  view source on GitHub ↗
(int numBytes)

Source from the content-addressed store, hash-verified

227
228
229 private boolean checkOverflow(int numBytes) {
230 if (pos + numBytes + 3 > buf.length) {
231 log.error(sm.getString("ajpmessage.overflow", "" + numBytes, "" + pos),
232 new ArrayIndexOutOfBoundsException());
233 if (log.isDebugEnabled()) {
234 dump("Overflow/coBytes");
235 }
236 return true;
237 }
238 return false;
239 }
240
241
242 /**

Callers 1

appendBytesMethod · 0.95

Calls 4

dumpMethod · 0.95
errorMethod · 0.65
getStringMethod · 0.65
isDebugEnabledMethod · 0.65

Tested by

no test coverage detected