Prevent copying longer than expected NTLM SSP key

svn path=/trunk/; revision=47248
This commit is contained in:
Balint Reczey 2013-01-24 09:34:54 +00:00
parent 42de9da8e3
commit 335d6ca7e2
1 changed files with 1 additions and 1 deletions

View File

@ -2291,7 +2291,7 @@ decrypt_verifier(tvbuff_t *tvb, int offset, guint32 encrypted_block_length,
/* Setup the buffer to decrypt to */
tvb_memcpy(tvb, packet_ntlmssp_info->verifier,
offset, encrypted_block_length);
offset, MIN(encrypted_block_length, sizeof(packet_ntlmssp_info->verifier)));
/*if (!(NTLMSSP_NEGOTIATE_KEY_EXCH & packet_ntlmssp_info->flags)) {*/
if (conv_ntlmssp_info->flags & NTLMSSP_NEGOTIATE_EXTENDED_SECURITY) {