SOURCES: proftpd-pool.patch (NEW) - add header size to memory size...
qboosh
qboosh at pld-linux.org
Tue Oct 24 12:57:20 CEST 2006
Author: qboosh Date: Tue Oct 24 10:57:19 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- add header size to memory size allocated for pools (fixes SEGV if sz < POOL_HDR_BYTES)
- fix padding on alpha with gcc <= 3.3
---- Files affected:
SOURCES:
proftpd-pool.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/proftpd-pool.patch
diff -u /dev/null SOURCES/proftpd-pool.patch:1.1
--- /dev/null Tue Oct 24 12:57:19 2006
+++ SOURCES/proftpd-pool.patch Tue Oct 24 12:57:14 2006
@@ -0,0 +1,20 @@
+--- proftpd-1.3.0/src/pool.c.orig 2005-03-08 18:06:39.000000000 +0100
++++ proftpd-1.3.0/src/pool.c 2006-10-24 12:53:07.000000000 +0200
+@@ -47,7 +47,7 @@
+ union align a;
+
+ /* Padding */
+-#if defined(_LP64) || defined(__LP64__)
++#if defined(_LP64) || defined(__LP64__) || defined(__alpha__)
+ char pad[32];
+ #endif
+
+@@ -363,7 +363,7 @@
+
+ pr_alarms_block();
+
+- blok = new_block(sz, TRUE);
++ blok = new_block(sz + POOL_HDR_BYTES, TRUE);
+
+ new_pool = (pool *) blok->h.first_avail;
+ blok->h.first_avail += POOL_HDR_BYTES;
================================================================
More information about the pld-cvs-commit
mailing list