libgcrypt/cipher (ChangeLog rndw32.c)
cvs user wk
cvs at cvs.gnupg.org
Wed Mar 23 09:39:48 CET 2005
Date: Wednesday, March 23, 2005 @ 09:53:55
Author: wk
Path: /cvs/libgcrypt/libgcrypt/cipher
Modified: ChangeLog rndw32.c
(_gcry_rndw32_gather_random_fast): While adding data
use the size of the object and not the one of its address. Bug
reported by Sascha Kiefer.
-----------+
ChangeLog | 6 ++++++
rndw32.c | 9 +++++----
2 files changed, 11 insertions(+), 4 deletions(-)
Index: libgcrypt/cipher/ChangeLog
diff -u libgcrypt/cipher/ChangeLog:1.226 libgcrypt/cipher/ChangeLog:1.227
--- libgcrypt/cipher/ChangeLog:1.226 Sat Mar 19 18:35:27 2005
+++ libgcrypt/cipher/ChangeLog Wed Mar 23 09:53:54 2005
@@ -1,3 +1,9 @@
+2005-03-23 Werner Koch <wk at g10code.com>
+
+ * rndw32.c (_gcry_rndw32_gather_random_fast): While adding data
+ use the size of the object and not the one of its address. Bug
+ reported by Sascha Kiefer.
+
2005-03-19 Moritz Schulte <moritz at g10code.com>
* cipher.c (do_cbc_encrypt): Be careful to not overwrite data,
Index: libgcrypt/cipher/rndw32.c
diff -u libgcrypt/cipher/rndw32.c:1.17 libgcrypt/cipher/rndw32.c:1.18
--- libgcrypt/cipher/rndw32.c:1.17 Thu Dec 11 16:46:12 2003
+++ libgcrypt/cipher/rndw32.c Wed Mar 23 09:53:54 2005
@@ -635,13 +635,14 @@
(*add) ( &kernelTime, sizeof (kernelTime), requester );
(*add) ( &userTime, sizeof (userTime), requester );
- /* Get the minimum and maximum working set size for the current process */
+ /* Get the minimum and maximum working set size for the
+ current process */
GetProcessWorkingSetSize (handle, &minimumWorkingSetSize,
&maximumWorkingSetSize);
(*add) ( &minimumWorkingSetSize,
- sizeof (&minimumWorkingSetSize), requester );
+ sizeof (minimumWorkingSetSize), requester );
(*add) ( &maximumWorkingSetSize,
- sizeof (&maximumWorkingSetSize), requester );
+ sizeof (maximumWorkingSetSize), requester );
}
@@ -669,7 +670,7 @@
if (QueryPerformanceCounter (&performanceCount)) {
if ( debug_me )
log_debug ("rndw32#gather_random_fast: perf data\n");
- (*add) (&performanceCount, sizeof (&performanceCount), requester);
+ (*add) (&performanceCount, sizeof (performanceCount), requester);
}
else { /* Millisecond accuracy at best... */
DWORD aword = GetTickCount ();
More information about the Gnupg-commits
mailing list