RFR: 8156593: DataOutput.write(byte[],int,int) and its implementations do not specify index out bounds [v2]
Brian Burkhalter
bpb at openjdk.org
Fri Oct 28 15:18:08 UTC 2022
On Fri, 28 Oct 2022 06:09:49 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:
>> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
>>
>> 8156593: Fix accidental edit
>
> src/java.base/share/classes/java/io/FileOutputStream.java line 346:
>
>> 344: * @param b {@inheritDoc}
>> 345: * @throws IOException {@inheritDoc}
>> 346: * @throws IndexOutOfBoundsException {@inheritDoc}
>
> When this IOOB can happen in `void write(byte[] b)` ?
It can't. Thanks for catching this accident. Fixed in c3ee766e2a0e1bc4cc49c81a0eb3221b05c411b7.
-------------
PR: https://git.openjdk.org/jdk/pull/10890
More information about the core-libs-dev
mailing list