mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 20:24:39 +02:00
Maintenance: OCSP
1. Add a couple more bounds checks to wolfIO_HttpProcessResponseBuf().
This commit is contained in:
@@ -980,6 +980,11 @@ static int wolfIO_HttpProcessResponseBuf(int sfd, byte **recvBuf,
|
|||||||
(void)heap;
|
(void)heap;
|
||||||
(void)dynType;
|
(void)dynType;
|
||||||
|
|
||||||
|
if (chunkSz < 0 || len < 0) {
|
||||||
|
WOLFSSL_MSG("wolfIO_HttpProcessResponseBuf invalid chunk or length size");
|
||||||
|
return MEMORY_E;
|
||||||
|
}
|
||||||
|
|
||||||
if (newRecvSz <= 0) {
|
if (newRecvSz <= 0) {
|
||||||
WOLFSSL_MSG("wolfIO_HttpProcessResponseBuf new receive size overflow");
|
WOLFSSL_MSG("wolfIO_HttpProcessResponseBuf new receive size overflow");
|
||||||
return MEMORY_E;
|
return MEMORY_E;
|
||||||
|
Reference in New Issue
Block a user