diff options
author | cvs2svn <cvs2svn@FreeBSD.org> | 2005-10-16 07:41:55 +0000 |
---|---|---|
committer | cvs2svn <cvs2svn@FreeBSD.org> | 2005-10-16 07:41:55 +0000 |
commit | 40a3261d1a6e2617f6afde0cd6d762a7e211af7a (patch) | |
tree | d70bbf882801af3a4e58dde3ed6a1da1849479d4 /lang/lua50/files/patch-ab | |
parent | Fix the string format vulnerability desribed at (diff) |
This commit was manufactured by cvs2svn to create tag 'RELEASE_6_0_0'.release/6.0.0
Diffstat (limited to 'lang/lua50/files/patch-ab')
-rw-r--r-- | lang/lua50/files/patch-ab | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/lang/lua50/files/patch-ab b/lang/lua50/files/patch-ab deleted file mode 100644 index 5a24cd697f27..000000000000 --- a/lang/lua50/files/patch-ab +++ /dev/null @@ -1,20 +0,0 @@ ---- src/lib/lmathlib.c.orig Tue Mar 11 21:30:37 2003 -+++ src/lib/lmathlib.c Fri May 9 02:32:59 2003 -@@ -170,7 +170,7 @@ - static int math_random (lua_State *L) { - /* the `%' avoids the (rare) case of r==1, and is needed also because on - some systems (SunOS!) `rand()' may return a value larger than RAND_MAX */ -- lua_Number r = (lua_Number)(rand()%RAND_MAX) / (lua_Number)RAND_MAX; -+ lua_Number r = (lua_Number)(random()%RAND_MAX) / (lua_Number)RAND_MAX; - switch (lua_gettop(L)) { /* check number of arguments */ - case 0: { /* no arguments */ - lua_pushnumber(L, r); /* Number between 0 and 1 */ -@@ -196,7 +196,7 @@ - - - static int math_randomseed (lua_State *L) { -- srand(luaL_checkint(L, 1)); -+ srandom(luaL_checkint(L, 1)); - return 0; - } - |