Skip to content

Commit

Permalink
xrdcl: fix invalid read of 1 byte
Browse files Browse the repository at this point in the history
  • Loading branch information
gganis committed Dec 21, 2018
1 parent 9ef99c6 commit 9952904
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/XrdCl/XrdClXRootDTransport.cc
Expand Up @@ -1712,7 +1712,7 @@ namespace XrdCl
// Initialize some other structs
//------------------------------------------------------------------------
size_t authBuffLen = strlen( info->authBuffer );
char *pars = (char *)malloc( authBuffLen );
char *pars = (char *)malloc( authBuffLen + 1 );
memcpy( pars, info->authBuffer, authBuffLen );
info->authParams = new XrdSecParameters( pars, authBuffLen );
sInfo.status = XRootDStreamInfo::AuthSent;
Expand Down

0 comments on commit 9952904

Please sign in to comment.