Commit ffad823e authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

bcrypt: Fix possible buffer overflow in export_gnutls_datum().

parent cb3cc2b5
......@@ -659,7 +659,7 @@ static ULONG export_gnutls_datum( UCHAR *buffer, ULONG buflen, gnutls_datum_t *d
size = buflen;
}
if (buffer) memcpy( buffer + offset, src, size );
if (buffer) memcpy( buffer + offset, src, size - offset );
return size;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment