diff options
Diffstat (limited to 'src/codec/hex/hex.cpp')
-rw-r--r-- | src/codec/hex/hex.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codec/hex/hex.cpp b/src/codec/hex/hex.cpp index 8efdd3ccd..0034de95a 100644 --- a/src/codec/hex/hex.cpp +++ b/src/codec/hex/hex.cpp @@ -168,7 +168,7 @@ SecureVector<byte> hex_decode(const char input[], u32bit input_length, bool ignore_ws) { - SecureVector<byte> bin(input_length / 2); + SecureVector<byte> bin(1 + input_length / 2); u32bit written = hex_decode(&bin[0], input, |