garydgregory commented on code in PR #221:
URL: https://github.com/apache/commons-codec/pull/221#discussion_r1404346632
##########
src/main/java/org/apache/commons/codec/net/QuotedPrintableCodec.java:
##########
@@ -208,6 +208,11 @@ public static final byte[] encodeQuotedPrintable(BitSet
printable, final byte[]
final int bytesLength = bytes.length;
if (strict) {
+ // Ensure bytes have at least 3 bytes
+ if (bytesLength < 3) {
Review Comment:
Hello @arthurscchan
If the number `3` is special, please refactor it into a constant and
document it.
--
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]