mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-13 11:09:13 +02:00
* 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:
parent
7b5c7f81d6
commit
109fa89bc8
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user