Author: qboosh Date: Fri Jan 27 19:59:30 2012 GMT Module: packages Tag: HEAD ---- Log message: - added tablesize patch: fix for hash table overflow (caught on ffmpeg configure script) - release 57
---- Files affected: packages/pdksh: pdksh.spec (1.125 -> 1.126) , pdksh-tablesize.patch (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: packages/pdksh/pdksh.spec diff -u packages/pdksh/pdksh.spec:1.125 packages/pdksh/pdksh.spec:1.126 --- packages/pdksh/pdksh.spec:1.125 Tue Jul 28 11:02:26 2009 +++ packages/pdksh/pdksh.spec Fri Jan 27 20:59:25 2012 @@ -15,7 +15,7 @@ Summary(uk.UTF-8): Вілбна реалізація командного процесора Korn shell (ksh) Name: pdksh Version: 5.2.14 -Release: 56 +Release: 57 License: Mostly Public Domain with Free & GPL additions Group: Applications/Shells Source0: ftp://ftp.cs.mun.ca/pub/pdksh/%{name}-%{version}.tar.gz @@ -24,6 +24,7 @@ Source2: %{name}-kshrc Patch0: %{name}-static.patch Patch1: %{name}-debian.patch +Patch2: %{name}-tablesize.patch Patch4: %{name}-history.patch Patch9: %{name}-no_stop_alias.patch Patch10: %{name}-man_no_plusminus.patch @@ -113,6 +114,7 @@ %setup -q %{?with_static:%patch0 -p0} %patch1 -p1 +%patch2 -p1 %patch4 -p1 %patch9 -p1 %patch11 -p1 @@ -178,6 +180,10 @@ All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ +Revision 1.126 2012/01/27 19:59:25 qboosh +- added tablesize patch: fix for hash table overflow (caught on ffmpeg configure script) +- release 57 + Revision 1.125 2009/07/28 09:02:26 arekm - rel 56; revert ================================================================ Index: packages/pdksh/pdksh-tablesize.patch diff -u /dev/null packages/pdksh/pdksh-tablesize.patch:1.1 --- /dev/null Fri Jan 27 20:59:30 2012 +++ packages/pdksh/pdksh-tablesize.patch Fri Jan 27 20:59:25 2012 @@ -0,0 +1,22 @@ +--- pdksh-5.2.14/table.h.orig 2012-01-27 19:39:52.948812260 +0100 ++++ pdksh-5.2.14/table.h 2012-01-27 20:29:02.388911018 +0100 +@@ -6,7 +6,7 @@ + + struct table { + Area *areap; /* area to allocate entries */ +- short size, nfree; /* hash size (always 2^^n), free entries */ ++ int size, nfree; /* hash size (always 2^^n), free entries */ + struct tbl **tbls; /* hashed table items */ + }; + +--- pdksh-5.2.14/table.c.orig 2012-01-27 19:39:52.938812259 +0100 ++++ pdksh-5.2.14/table.c 2012-01-27 20:32:18.718917592 +0100 +@@ -44,6 +44,8 @@ + register struct tbl **ntblp, **otblp = tp->tbls; + int osize = tp->size; + ++ if(nsize >= (1<<29)) ++ internal_errorf(1, "hash table too big"); + ntblp = (struct tbl**) alloc(sizeofN(struct tbl *, nsize), tp->areap); + for (i = 0; i < nsize; i++) + ntblp[i] = NULL; ================================================================ ---- CVS-web: http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/pdksh/pdksh.spec?r1=1.125&r2=1.126&f=u _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
