mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8231490: Ugly racy writes to ZipUtils.defaultBuf
Reviewed-by: lancea
This commit is contained in:
parent
e383d26361
commit
905e3e8813
1 changed files with 3 additions and 1 deletions
|
@ -419,7 +419,9 @@ public class Inflater {
|
||||||
needDict = true;
|
needDict = true;
|
||||||
}
|
}
|
||||||
if (input != null) {
|
if (input != null) {
|
||||||
input.position(inputPos + read);
|
if (read > 0) {
|
||||||
|
input.position(inputPos + read);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
this.inputPos = inputPos + read;
|
this.inputPos = inputPos + read;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue