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

Method validatePos

java/org/apache/coyote/ajp/AjpMessage.java:383–388  ·  view source on GitHub ↗
(int posToTest)

Source from the content-addressed store, hash-verified

381
382
383 private void validatePos(int posToTest) {
384 if (posToTest > len + 4) {
385 // Trying to read data beyond the end of the AJP message
386 throw new ArrayIndexOutOfBoundsException(sm.getString("ajpMessage.invalidPos", Integer.valueOf(posToTest)));
387 }
388 }
389 // ------------------------------------------------------ Protected Methods
390
391

Callers 5

getIntMethod · 0.95
peekIntMethod · 0.95
getByteMethod · 0.95
doGetBytesMethod · 0.95
getLongIntMethod · 0.95

Calls 2

getStringMethod · 0.65
valueOfMethod · 0.45

Tested by

no test coverage detected