* Make sure key is zero-padded if seed is smaller than key length (bug 20949, patch from Ilya Melnikov)

git-svn-id: trunk@19904 -
This commit is contained in:
michael 2011-12-29 11:48:38 +00:00
parent 7b5c7f81d6
commit 109fa89bc8

View File

@ -289,6 +289,7 @@ begin
Raise EIDEAError.Create(SErrEmptyKey);
If (Length(S)>SizeOf(Key)) then
KLen:=SizeOf(Key);
FillChar(Key,SizeOf(Key),0);
Move(S[1],Key,KLen);
end;