We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f6253b commit 66a3c79Copy full SHA for 66a3c79
src/main/java/com/maxmind/db/MultiBuffer.java
@@ -113,6 +113,13 @@ public byte get() {
113
/** {@inheritDoc} */
114
@Override
115
public Buffer get(byte[] dst) {
116
+ if (position + dst.length > limit) {
117
+ throw new IndexOutOfBoundsException(
118
+ "Read exceeds limit: position=" + position
119
+ + ", length=" + dst.length
120
+ + ", limit=" + limit
121
+ );
122
+ }
123
long pos = position;
124
int offset = 0;
125
int length = dst.length;
0 commit comments