mirror of
https://github.com/openssl/openssl.git
synced 2026-05-07 20:12:39 +00:00
8d165eb843
The SM2 encryption may write past the caller-provided output buffer when the required ciphertext size exceeds the supplied buffer length. Reject outputs that do not fit in the caller-provided buffer. Reviewed-by: Viktor Dukhovni <viktor@openssl.org> Reviewed-by: Eugene Syromiatnikov <esyr@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.foundation> MergeDate: Wed May 6 16:51:00 2026 (Merged from https://github.com/openssl/openssl/pull/30614)