Maintenance: OCSP

1. Add a couple more bounds checks to wolfIO_HttpProcessResponseBuf().
This commit is contained in:
John Safranek
2019-11-21 14:51:35 -08:00
parent 6720bc3890
commit 71943844d6

View File

@@ -980,6 +980,11 @@ static int wolfIO_HttpProcessResponseBuf(int sfd, byte **recvBuf,
(void)heap;
(void)dynType;
if (chunkSz < 0 || len < 0) {
WOLFSSL_MSG("wolfIO_HttpProcessResponseBuf invalid chunk or length size");
return MEMORY_E;
}
if (newRecvSz <= 0) {
WOLFSSL_MSG("wolfIO_HttpProcessResponseBuf new receive size overflow");
return MEMORY_E;