Fixed one-byte buffer overflow problem in memcpy found during
code review. -This line, and those below, will be ignored-- M linux/get.c
This commit is contained in:
parent
d1d93ba218
commit
69f772ed91
@ -296,7 +296,7 @@ AuthTokenIf_GetAuthToken(
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// The buffer provided is large enough, copy the data and return the actual size.
|
// The buffer provided is large enough, copy the data and return the actual size.
|
||||||
memcpy((void*) pTokenBuf, pEncodedToken, encodedTokenLen + 1);
|
memcpy((void*) pTokenBuf, pEncodedToken, encodedTokenLen);
|
||||||
|
|
||||||
// Success
|
// Success
|
||||||
retStatus = CASA_STATUS_SUCCESS;
|
retStatus = CASA_STATUS_SUCCESS;
|
||||||
|
Loading…
Reference in New Issue
Block a user