in commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/core/MultipartInput.java [413:428]
public long skip(final long bytes) throws IOException {
checkOpen();
var available = available();
if (available == 0) {
available = makeAvailable();
if (available == 0) {
return 0;
}
}
// Fix "Implicit narrowing conversion in compound assignment"
// https://github.com/apache/commons-fileupload/security/code-scanning/118
// Math.min always returns an int because available is an int.
final var res = Math.toIntExact(Math.min(available, bytes));
head += res;
return res;
}