From: Pekka Riikonen Date: Tue, 9 Jul 2002 11:43:35 +0000 (+0000) Subject: Buffer overflow fix. X-Git-Tag: silc.client.0.9.5~37 X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=commitdiff_plain;h=db26ef4798329158ca1282b4d316d4f2be015668 Buffer overflow fix. --- 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);