Skip to content

Commit 92cf561

Browse files
committed
Fix CodeQL warnings in UnsynchronizedBufferedInputStream: Implicit
narrowing conversion in compound assignment. - (int count - int pos) here is always an int so amount is also in the int range if the above test is true. - We can safely cast and avoid static analysis warnings: "Implicit narrowing conversion in compound assignment" - https://github.com/apache/commons-io/security/code-scanning/135 - https://github.com/apache/commons-io/security/code-scanning/88
1 parent a9c5067 commit 92cf561

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/changes/changes.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ The <action> type attribute can be add,update,fix,remove.
9494
<action dev="ggregory" type="fix" due-to="sebbASF">
9595
[Javadoc] IOUtils#contentEquals does not throw NullPointerException #496.
9696
</action>
97+
<action dev="ggregory" type="fix" due-to="Gary Gregory">
98+
Fix CodeQL warnings in UnsynchronizedBufferedInputStream: Implicit narrowing conversion in compound assignment.
99+
</action>
97100
<!-- ADD -->
98101
<action dev="ggregory" type="add" due-to="Gary Gregory">
99102
Add org.apache.commons.io.channels.FileChannels.

0 commit comments

Comments
 (0)