From 9deaf399553050b3b426e8a39d0ffd22430bf72d Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sat, 14 Apr 2018 21:39:58 +0200 Subject: In-depth fix for to64frombits() BASE64 encoder buffer sizing. --- ntlmsubr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ntlmsubr.c') diff --git a/ntlmsubr.c b/ntlmsubr.c index 057c1b91..cf305ef0 100644 --- a/ntlmsubr.c +++ b/ntlmsubr.c @@ -44,7 +44,7 @@ int ntlm_helper(int sock, struct query *ctl, const char *proto) dumpSmbNtlmAuthRequest(stdout, &request); memset(msgbuf,0,sizeof msgbuf); - to64frombits (msgbuf, &request, SmbLength(&request)); + to64frombits (msgbuf, &request, SmbLength(&request), sizeof msgbuf); if (outlevel >= O_MONITOR) report(stdout, "%s> %s\n", proto, msgbuf); @@ -95,7 +95,7 @@ int ntlm_helper(int sock, struct query *ctl, const char *proto) dumpSmbNtlmAuthResponse(stdout, &response); memset(msgbuf,0,sizeof msgbuf); - to64frombits (msgbuf, &response, SmbLength(&response)); + to64frombits (msgbuf, &response, SmbLength(&response), sizeof msgbuf); if (outlevel >= O_MONITOR) report(stdout, "%s> %s\n", proto, msgbuf); -- cgit v1.2.3