Rediffed patches for merge fuzz

This commit is contained in:
Brent Cook 2018-11-07 20:00:29 -06:00
parent 34394e7ee0
commit 11bb39ecf6
6 changed files with 39 additions and 40 deletions

1
.gitignore vendored
View File

@ -126,6 +126,7 @@ include/openssl/*.h
/apps/ocspcheck/*.c
/apps/ocspcheck/ocspcheck*
/apps/ocspcheck/compat/memmem.c
/apps/ocspcheck/compat/inet_ntop.c
/apps/nc/*.h
/apps/nc/*.c

View File

@ -1,5 +1,5 @@
--- tests/aeadtest.c.orig 2016-10-18 17:03:33.845870889 +0900
+++ tests/aeadtest.c 2016-10-18 17:11:19.880841283 +0900
--- tests/aeadtest.c.orig 2018-07-24 21:59:17.000000000 -0500
+++ tests/aeadtest.c 2018-11-07 18:44:43.000000000 -0600
@@ -76,6 +76,12 @@
#define BUF_MAX 1024

View File

@ -1,12 +1,12 @@
--- include/openssl/bio.h.orig Mon Oct 3 06:09:28 2016
+++ include/openssl/bio.h Sun Nov 6 04:24:57 2016
@@ -713,8 +713,24 @@
--- include/openssl/bio.h.orig 2018-07-24 21:59:17.000000000 -0500
+++ include/openssl/bio.h 2018-11-07 18:44:43.000000000 -0600
@@ -713,6 +713,22 @@
/*long BIO_ghbn_ctrl(int cmd,int iarg,char *parg);*/
+#ifdef __MINGW_PRINTF_FORMAT
int
BIO_printf(BIO *bio, const char *format, ...)
+int
+BIO_printf(BIO *bio, const char *format, ...)
+ __attribute__((__format__(__MINGW_PRINTF_FORMAT, 2, 3), __nonnull__(2)));
+int
+BIO_vprintf(BIO *bio, const char *format, va_list args)
@ -20,11 +20,9 @@
+ __attribute__((__deprecated__, __format__(__MINGW_PRINTF_FORMAT, 3, 0),
+ __nonnull__(3)));
+#else
+int
+BIO_printf(BIO *bio, const char *format, ...)
__attribute__((__format__(__printf__, 2, 3), __nonnull__(2)));
int
BIO_vprintf(BIO *bio, const char *format, va_list args)
BIO_printf(BIO *bio, const char *format, ...)
__attribute__((__format__(__printf__, 2, 3), __nonnull__(2)));
@@ -727,6 +743,8 @@
BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args)
__attribute__((__deprecated__, __format__(__printf__, 3, 0),

View File

@ -1,5 +1,5 @@
--- apps/nc/netcat.c.orig Mon Jul 17 06:06:51 2017
+++ apps/nc/netcat.c Mon Jul 17 06:11:24 2017
--- apps/nc/netcat.c.orig 2018-11-07 17:01:38.000000000 -0600
+++ apps/nc/netcat.c 2018-11-07 17:37:57.000000000 -0600
@@ -92,9 +92,13 @@
int Dflag; /* sodebug */
int Iflag; /* TCP receive buffer size */

View File

@ -1,5 +1,5 @@
--- tests/ocsp_test.c.orig 2016-10-18 18:12:39.854607509 +0900
+++ tests/ocsp_test.c 2016-10-18 18:14:29.261600559 +0900
--- tests/ocsp_test.c.orig 2018-07-24 21:59:17.000000000 -0500
+++ tests/ocsp_test.c 2018-11-07 18:44:43.000000000 -0600
@@ -35,6 +35,11 @@
hints.ai_family = AF_INET;
hints.ai_socktype = SOCK_STREAM;

View File

@ -1,5 +1,5 @@
--- tests/tlsexttest.c.orig 2017-12-30 20:03:09.279079726 +0900
+++ tests/tlsexttest.c 2017-12-30 20:07:21.849939140 +0900
--- tests/tlsexttest.c.orig Wed Nov 7 20:01:26 2018
+++ tests/tlsexttest.c Wed Nov 7 20:01:35 2018
@@ -1676,7 +1676,9 @@
};
@ -10,7 +10,7 @@
static int
test_tlsext_sni_clienthello(void)
@@ -1841,9 +1843,9 @@
@@ -1839,9 +1841,9 @@
if (!CBB_finish(&cbb, &data, &dlen))
errx(1, "failed to finish CBB");
@ -22,7 +22,7 @@
goto err;
}
@@ -1852,14 +1854,14 @@
@@ -1850,14 +1852,14 @@
fprintf(stderr, "received:\n");
hexdump(data, dlen);
fprintf(stderr, "test data:\n");
@ -39,7 +39,7 @@
if (!tlsext_sni_serverhello_parse(ssl, &cbs, &alert)) {
FAIL("failed to parse serverhello SNI\n");
goto err;
@@ -2744,7 +2746,10 @@
@@ -2741,7 +2743,10 @@
0x03, 0x01, 0x03, 0x03, 0x02, 0x01, 0x02, 0x03,
};
@ -51,7 +51,7 @@
static int
test_tlsext_clienthello_build(void)
@@ -2811,18 +2816,18 @@
@@ -2806,18 +2811,18 @@
if (!CBB_finish(&cbb, &data, &dlen))
errx(1, "failed to finish CBB");
@ -74,7 +74,7 @@
goto err;
}
@@ -2837,7 +2842,10 @@
@@ -2832,7 +2837,10 @@
return (failure);
}
@ -86,7 +86,7 @@
unsigned char tlsext_serverhello_enabled[] = {
0x00, 0x13, 0xff, 0x01, 0x00, 0x01, 0x00, 0x00,
@@ -2877,18 +2885,18 @@
@@ -2872,18 +2880,18 @@
if (!CBB_finish(&cbb, &data, &dlen))
errx(1, "failed to finish CBB");