Re: problem with TIdHashMessageDigest5 on latest snapshot

Giganews Newsgroups
Subject: Re: problem with TIdHashMessageDigest5 on latest snapshot
Posted by:  Michal Hruby (mh…@zoznam.sk)
Date: Mon, 05 Feb 2007

There's another bug in function TIdHashMessageDigest4.GetHashBytes

-- original code --
....
  // Read the last set of bytes.
  LStartPos := ReadTIdBytesFromStream(AStream, FCBuffer, 64);
  // TODO: handle stream read error
....
-- end original --

-- fixed --
....
  // Read the last set of bytes.
  LStartPos := ReadTIdBytesFromStream(AStream, FCBuffer, LSize);
  // TODO: handle stream read error
....
-- end fixed --

Replies

None

In response to

problem with TIdHashMessageDigest5 on latest snapshot posted by Pibì on Mon, 18 Dec 2006