We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b948f67 commit fee9788Copy full SHA for fee9788
tests/api.c
@@ -65656,7 +65656,7 @@ static int test_EccSigFailure_cm(void)
65656
size_t cert_sz = 0;
65657
65658
ExpectIntEQ(load_file(server_cert, &cert_buf, &cert_sz), 0);
65659
- if (cert_buf != NULL) {
+ if (cert_buf != NULL && cert_sz > 0) {
65660
/* corrupt DER - invert last byte, which is signature */
65661
cert_buf[cert_sz-1] = ~cert_buf[cert_sz-1];
65662
0 commit comments