CVSROOT: /cvs Module name: src Changes by: t...@cvs.openbsd.org 2020/11/25 14:17:52
Modified files: lib/libcrypto/x509: x509_constraints.c Log message: Avoid undefined behavior due to memcpy(NULL, NULL, 0) This happens if name->der_len == 0. Since we already have a length check, we can malloc and memcpy inside the conditional. This also makes the code easier to read. agreement from millert ok jsing