Buffer overflow fix.
authorPekka Riikonen <priikone@silcnet.org>
Tue, 9 Jul 2002 11:43:35 +0000 (11:43 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Tue, 9 Jul 2002 11:43:35 +0000 (11:43 +0000)
TODO
lib/silccrypt/silcrng.c

diff --git a/TODO b/TODO
index 1078a4c74026ec71c865dba0ff7b71b5ec9958ab..ff7af8f8951f6c27803bcf419e0ce18704ddd9e0 100644 (file)
--- a/TODO
+++ b/TODO
@@ -56,6 +56,9 @@ TODO/bugs In SILC Server
 TODO/bugs In SILC Libraries
 ===========================
 
+ o Bit losing fixes to be done in SILC RNG.  Use GET32_MSB and PUT32_MSB
+   macros when doing conversions from types.
+
  o WIN32 silc_net_create_connection_async does not work the same way
    than on Unix.  Do it with threads on WIN32.  The function works but
    is not actually async currently (Fix this to 0.9.x).
index 02fbbfa97fdb0ba78059b1981cf008bdcc7a6f74..620ebecfba182d14445520bf738bb76f820afdda 100644 (file)
@@ -44,7 +44,7 @@ extern pid_t getpgid (pid_t __pid);
 #define SILC_RNG_STATE_NUM 4
 
 /* Byte size of the random data pool. */
-#define SILC_RNG_POOLSIZE 1024
+#define SILC_RNG_POOLSIZE 1024 + 1
 
 static SilcUInt32 silc_rng_get_position(SilcRng rng);
 static void silc_rng_stir_pool(SilcRng rng);