Merge branch '6.2.x'

This commit is contained in:
Brian Clozel 2025-06-13 09:57:18 +02:00
commit cd80ca0fe0
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ final class DataBufferInputStream extends InputStream {
return 0L; return 0L;
} }
int skipped = Math.min(available(), n > Integer.MAX_VALUE ? Integer.MAX_VALUE : (int) n); int skipped = Math.min(available(), n > Integer.MAX_VALUE ? Integer.MAX_VALUE : (int) n);
this.dataBuffer.readPosition(Math.min(this.end, this.dataBuffer.readPosition() + skipped)); this.dataBuffer.readPosition(this.dataBuffer.readPosition() + skipped);
return skipped; return skipped;
} }