CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2026/09/27 20:18:36
Modified files:
lib/libcrypto/asn1: a_object.c
lib/libcrypto/bn: bn_add.c bn_convert.c
regress/lib/libcrypto/bn: bn_convert.c
Log message:
libcrypto: avoid undefined behavior with zero-length buffers
Avoid UBSan failures caused by null pointers in zero-length operations.
- Avoid zero-offset arithmetic on null BIGNUM data
- Return early for zero-length BIGNUM output
- Avoid passing a null destination to strlcpy
- Skip memcmp for empty test vectors
ok beck