We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6fd4e3 commit 4438b8fCopy full SHA for 4438b8f
pdfbox/src/main/java/org/apache/pdfbox/util/Hex.java
@@ -218,7 +218,7 @@ public static byte[] decodeBase64(String base64Value)
218
*/
219
public static byte[] decodeHex(String s)
220
{
221
- ByteArrayOutputStream baos = new ByteArrayOutputStream();
+ ByteArrayOutputStream baos = new ByteArrayOutputStream((s.length() + 1) / 2);
222
int i = 0;
223
while (i < s.length() - 1)
224
0 commit comments