diff options
Diffstat (limited to 'lib/str.c')
-rw-r--r-- | lib/str.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -508,8 +508,7 @@ _gnutls_hex2bin(const char *hex_data, size_t hex_size, uint8_t * bin_data, i++; continue; } - - if (j > *bin_size) { + if (j >= *bin_size) { gnutls_assert(); return GNUTLS_E_SHORT_MEMORY_BUFFER; } |