8156593: DataOutput.write(byte[],int,int) and its implementations do not specify index out bounds

Reviewed-by: alanb, aturbanov
This commit is contained in:
Brian Burkhalter 2022-10-31 22:18:26 +00:00
parent 8480f87044
commit 4999f2cb16
11 changed files with 17 additions and 2 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 1994, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1994, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -104,6 +104,7 @@ public class DataOutputStream extends FilterOutputStream implements DataOutput {
* @param off the start offset in the data.
* @param len the number of bytes to write.
* @throws IOException if an I/O error occurs.
* @throws IndexOutOfBoundsException {@inheritDoc}
* @see java.io.FilterOutputStream#out
*/
public synchronized void write(byte[] b, int off, int len)