Avoid the call to OPENSSL_malloc with a negative value (then casted to unsigned)