We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If you invoke read/write operations using lenght = buffer.lenght + 1, RANGE_ARRAY_LENGHT is not detected.
private static final int BUFFER_LENGTH = 10; public void test() { File file = new File("temp.txt"); try (FileReader fr = new FileReader(file)) { char[] buffer = new char[BUFFER_LENGTH]; // False negative: Expected RANGE_ARRAY_LENGHT fr.read(buffer, 0, BUFFER_LENGTH + 1); } catch (Exception e) { } }
However, it works correctly with buffer.length + 2.
Same issue with RANGE_ARRAY_OFFSET. Also with some String constructors.
The text was updated successfully, but these errors were encountered:
Closed by #596
Sorry, something went wrong.
No branches or pull requests
If you invoke read/write operations using lenght = buffer.lenght + 1, RANGE_ARRAY_LENGHT is not detected.
However, it works correctly with buffer.length + 2.
Same issue with RANGE_ARRAY_OFFSET. Also with some String constructors.
The text was updated successfully, but these errors were encountered: