Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37816040
en ru br
Репозитории ALT
S:2.3-alt3
5.1: 2.2.1-alt3
4.1: 2.2.1-alt3
4.0: 2.2.1-alt3
3.0: 2.2.1-alt1
www.altlinux.org/Changes

Группа :: Разработка/Tcl
Пакет: tcl-memchan

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: tcl-memchan-2.3-deb-randinit-fix.patch
Скачать


Author: Sergei Golovan
Description: Patch fixes buffer underrun (calling randinit() with one
 parameter instead of two.
Debian-Bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=748163
Last-Modified: Thu, 15 May 2014 08:19:21 +0400
--- a/generic/random.c
+++ b/generic/random.c
@@ -526,7 +526,7 @@
      */
     seed = time(NULL) + ((long)Tcl_GetCurrentThread() << 12);
     memcpy(&instance->state.randrsl, &seed, sizeof(seed));
-    randinit(&instance->state);
+    randinit(&instance->state, TRUE);
     
     Tcl_RegisterChannel  (interp, chan);
     Tcl_SetChannelOption (interp, chan, "-buffering", "none");
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin