From db26ef4798329158ca1282b4d316d4f2be015668 Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Tue, 9 Jul 2002 11:43:35 +0000 Subject: [PATCH] Buffer overflow fix. --- TODO | 3 +++ lib/silccrypt/silcrng.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/TODO b/TODO index 1078a4c7..ff7af8f8 100644 --- 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). diff --git a/lib/silccrypt/silcrng.c b/lib/silccrypt/silcrng.c index 02fbbfa9..620ebecf 100644 --- a/lib/silccrypt/silcrng.c +++ b/lib/silccrypt/silcrng.c @@ -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); -- 2.24.0