Check the plaintext buffer is large enough when decrypting SM2