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: |
3a165b934781186851fbef056324a1dc |
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 14 15 16 17 18 19 20 21 | fi VERS=1.6 SRC="src/tls${VERS}-src.tar.gz" SRCURL="http://sourceforge.net/projects/tls/files/tls/${VERS}/tls${VERS}-src.tar.gz/download" BUILDDIR="tls${VERS}" WORKDIR="${TMPDIR:-/tmp}/tls-$$${RANDOM}${RANDOM}${RANDOM}" PLATDIR="$(pwd)/out/${PLATFORM}" | > | > > > > > > > > > | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | fi VERS=1.6 SRC="src/tls${VERS}-src.tar.gz" SRCURL="http://sourceforge.net/projects/tls/files/tls/${VERS}/tls${VERS}-src.tar.gz/download" BUILDDIR="tls${VERS}" WORKDIR="${TMPDIR:-/tmp}/tls-$$${RANDOM}${RANDOM}${RANDOM}" PATCHDIR="$(pwd)/patches" PLATDIR="$(pwd)/out/${PLATFORM}" export VERS SRC SRCURL BUILDDIR WORKDIR PATCHDIR PLATDIR if [ ! -f "${SRC}" ]; then mkdir src >/dev/null 2>/dev/null wget -O "${SRC}" "${SRCURL}" || exit 1 fi ( rm -rf build mkdir build cd build/ || exit 1 gzip -dc "../${SRC}" | tar -xf - cd "${BUILDDIR}" || exit 1 # Apply patches for patchfile in "${PATCHDIR}"/all/*.diff "${PATCHDIR}/${VERS}"/*.diff; do if [ ! -f "${patchfile}" ]; then continue fi patch -p1 < "${patchfile}" done for chkssldir in $(pkg-config openssl --cflags | sed 's@ *-I *@|@g' | tr '|' "\n" | grep '^/'); do if [ -f "${chkssldir}/openssl/opensslv.h" -o -f "${chkssldir}/opensslv.h" ]; then SSLDIR=$(echo "${chkssldir}" | sed 's@/[^/]*/*$@@') fi done if [ -z "${SSLDIR}" ]; then |
︙ | ︙ |
Added server/buildpkgs/tls/patches/1.6/tls-1.6-fixmemleak-bugid3041925.diff version [13a18a6baa].
> > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 | diff -uNr tls1.6.orig/tls.c tls1.6-fixmemleak-bugid3041925/tls.c --- tls1.6.orig/tls.c 2008-03-19 17:06:13.000000000 -0500 +++ tls1.6-fixmemleak-bugid3041925/tls.c 2010-10-08 13:03:39.000000000 -0500 @@ -1156,6 +1156,8 @@ peer = SSL_get_certificate(statePtr->ssl); if (peer) { objPtr = Tls_NewX509Obj(interp, peer); + + if (objc == 2) X509_free(peer); } else { objPtr = Tcl_NewListObj(0, NULL); } |