Address CodeQL issues in pack200/unpack200 packages.
authorGary Gregory <garydgregory@gmail.com>
Wed, 9 Feb 2022 01:59:31 +0000 (20:59 -0500)
committerGary Gregory <garydgregory@gmail.com>
Wed, 9 Feb 2022 01:59:31 +0000 (20:59 -0500)
commit666e787a17e4e7321b70e99e55acf27b6382ab17
treeda5554971bc60e30645a4e189bfa16b4d6e5d725
parent39abfb17b02acd7d07b0c3ff5bac666a7bd35ea7
Address CodeQL issues in pack200/unpack200 packages.

Throw ArithmeticExceptioninstead of silently overflowing.
src/main/java/org/apache/commons/compress/archivers/cpio/CpioArchiveEntry.java
src/main/java/org/apache/commons/compress/harmony/pack200/BHSDCodec.java
src/main/java/org/apache/commons/compress/harmony/pack200/FileBands.java
src/main/java/org/apache/commons/compress/harmony/pack200/RunCodec.java
src/main/java/org/apache/commons/compress/harmony/unpack200/BandSet.java
src/main/java/org/apache/commons/compress/utils/ExactMath.java [new file with mode: 0644]