Fixed buffer overflow, and also NULL pointer dereference, in ECDSA signature handling.