yakovsh commented on code in PR #441:
URL: https://github.com/apache/commons-compress/pull/441#discussion_r1393409551
##########
src/main/java/org/apache/commons/compress/archivers/cpio/CpioArchiveInputStream.java:
##########
@@ -406,7 +406,11 @@ public int read(final byte[] b, final int off, final int
len)
private long readAsciiLong(final int length, final int radix)
throws IOException {
final byte[] tmpBuffer = readRange(length);
- return Long.parseLong(ArchiveUtils.toAsciiString(tmpBuffer), radix);
+ try {
+ return Long.parseLong(ArchiveUtils.toAsciiString(tmpBuffer),
radix);
+ } catch(NumberFormatException ex) {
Review Comment:
Can you clarify the specific formatting issue? Thank you!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]