Check-in [3a165b9347]
Overview
Comment:Added memory leak patch for Tls 1.6
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:3a165b934781186851fbef056324a1dcfc98a097
User & Date: rkeene on 2010-10-08 13:10:27
Other Links: manifest | tags
Context
2010-10-09
10:43
Updated to support using a patch command specified in the PATCH environment variable check-in: 2307c8734f user: rkeene tags: trunk
2010-10-08
13:10
Added memory leak patch for Tls 1.6 check-in: 3a165b9347 user: rkeene tags: trunk
2010-08-30
12:20
Added LICENSE check-in: c0d502344a user: rkeene tags: trunk
Changes

Modified server/buildpkgs/tls/build.sh from [780cdf7280] to [78e603f797].

    13     13   fi
    14     14   
    15     15   VERS=1.6
    16     16   SRC="src/tls${VERS}-src.tar.gz"
    17     17   SRCURL="http://sourceforge.net/projects/tls/files/tls/${VERS}/tls${VERS}-src.tar.gz/download"
    18     18   BUILDDIR="tls${VERS}"
    19     19   WORKDIR="${TMPDIR:-/tmp}/tls-$$${RANDOM}${RANDOM}${RANDOM}"
           20  +PATCHDIR="$(pwd)/patches"
    20     21   PLATDIR="$(pwd)/out/${PLATFORM}"
    21     22   
    22         -export VERS SRC SRCURL BUILDDIR WORKDIR PLATDIR
           23  +export VERS SRC SRCURL BUILDDIR WORKDIR PATCHDIR PLATDIR
    23     24   
    24     25   if [ ! -f "${SRC}" ]; then
    25     26   	mkdir src >/dev/null 2>/dev/null
    26     27   
    27     28   	wget -O "${SRC}" "${SRCURL}" || exit 1
    28     29   fi
    29     30   
................................................................................
    30     31   (
    31     32   	rm -rf build
    32     33   	mkdir build
    33     34   	cd build/ || exit 1
    34     35   
    35     36   	gzip -dc "../${SRC}" | tar -xf -
    36     37   	cd "${BUILDDIR}" || exit 1
           38  +
           39  +	# Apply patches
           40  +	for patchfile in "${PATCHDIR}"/all/*.diff "${PATCHDIR}/${VERS}"/*.diff; do
           41  +		if [ ! -f "${patchfile}" ]; then
           42  +			continue
           43  +		fi
           44  +
           45  +		patch -p1 < "${patchfile}"
           46  +	done
    37     47   
    38     48   	for chkssldir in $(pkg-config openssl --cflags | sed 's@ *-I *@|@g' | tr '|' "\n" | grep '^/'); do
    39     49   		if [ -f "${chkssldir}/openssl/opensslv.h" -o -f "${chkssldir}/opensslv.h" ]; then
    40     50   			SSLDIR=$(echo "${chkssldir}" | sed 's@/[^/]*/*$@@')
    41     51   		fi
    42     52   	done
    43     53   	if [ -z "${SSLDIR}" ]; then

Added server/buildpkgs/tls/patches/1.6/tls-1.6-fixmemleak-bugid3041925.diff version [13a18a6baa].

            1  +diff -uNr tls1.6.orig/tls.c tls1.6-fixmemleak-bugid3041925/tls.c
            2  +--- tls1.6.orig/tls.c	2008-03-19 17:06:13.000000000 -0500
            3  ++++ tls1.6-fixmemleak-bugid3041925/tls.c	2010-10-08 13:03:39.000000000 -0500
            4  +@@ -1156,6 +1156,8 @@
            5  + 	peer	= SSL_get_certificate(statePtr->ssl);
            6  +     if (peer) {
            7  + 	objPtr = Tls_NewX509Obj(interp, peer);
            8  ++
            9  ++	if (objc == 2) X509_free(peer);
           10  +     } else {
           11  + 	objPtr = Tcl_NewListObj(0, NULL);
           12  +     }