mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
Merge pull request #4210 from JacobBarthelmeh/Testing
handle edge case of input buffer malloc'd to location immediately aft…
This commit is contained in:
@ -8579,7 +8579,7 @@ static int SendHandshakeMsg(WOLFSSL* ssl, byte* input, word32 inputSz,
|
|||||||
/* Make sure input is not the ssl output buffer as this
|
/* Make sure input is not the ssl output buffer as this
|
||||||
* function doesn't handle that */
|
* function doesn't handle that */
|
||||||
if (input >= ssl->buffers.outputBuffer.buffer &&
|
if (input >= ssl->buffers.outputBuffer.buffer &&
|
||||||
input <= ssl->buffers.outputBuffer.buffer +
|
input < ssl->buffers.outputBuffer.buffer +
|
||||||
ssl->buffers.outputBuffer.bufferSize) {
|
ssl->buffers.outputBuffer.bufferSize) {
|
||||||
WOLFSSL_MSG("Can't use output buffer for input in SendHandshakeMsg");
|
WOLFSSL_MSG("Can't use output buffer for input in SendHandshakeMsg");
|
||||||
return BAD_FUNC_ARG;
|
return BAD_FUNC_ARG;
|
||||||
|
Reference in New Issue
Block a user