# HG changeset patch # User holger@hoho.dyndns.org # Date 1239646195 -7200 # Node ID 23ee2f4aac03f6035de7bc1b07324994ab73a877 # Parent fbc8ef03d0ec5302045357bff2c44b9957792153 add fix for crashes with glibc 2.9 diff -r fbc8ef03d0ec -r 23ee2f4aac03 net-mail/up-imapproxy/Manifest --- a/net-mail/up-imapproxy/Manifest Fri Apr 10 13:18:15 2009 +0200 +++ b/net-mail/up-imapproxy/Manifest Mon Apr 13 20:09:55 2009 +0200 @@ -1,3 +1,4 @@ AUX imapproxy.rc6 505 RMD160 f217612eb25c3dab81ce6d206f2a0681169db18d SHA1 deaa2f55e90fe57a97ac1032eba542ec72e5840d SHA256 b0d2369d4f311d37834145887e358c98e65451505985e2457dae9609f72579dd +AUX up-imapproxy-1.2.6-overflow.patch 857 RMD160 650b5400ff32ba285d5114c3f528832999ec88cb SHA1 1fab96af48850e3270fee87db9de835fff062caa SHA256 7b3b4471974f8fc9ceb3cbb0e421d52092fd25ea691495a88596a7abf1e9e5ac DIST up-imapproxy-1.2.6.tar.gz 134745 RMD160 4613acd3fcacdc40905ec8692afd3a4e9563258c SHA1 75f497e3fda44ff1526c46ac93e5c863bf6e0963 SHA256 2f5e841bc6c84799f890d24b984726efb7cce26c2ad95923864ddf0353fa3b01 -EBUILD up-imapproxy-1.2.6.ebuild 1254 RMD160 7c2265c6088dd188b2c1a445597e87a2d7291166 SHA1 2a355c6750b6f9fc21c8bfbb970d44e34151bda2 SHA256 8524ff07543195adb9f2dbb00227975f646ef209259db2e5a8ddeacae05a018b +EBUILD up-imapproxy-1.2.6.ebuild 1303 RMD160 ca956d561ca28f872add66adaa286f82fe3a1a22 SHA1 e0f6b41d0997f2408ff7057e64afcdac245f9789 SHA256 de376f8049faa604742cff0016fe43453f7c5fcd0913383c2c41a12acd52f796 diff -r fbc8ef03d0ec -r 23ee2f4aac03 net-mail/up-imapproxy/files/up-imapproxy-1.2.6-overflow.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/net-mail/up-imapproxy/files/up-imapproxy-1.2.6-overflow.patch Mon Apr 13 20:09:55 2009 +0200 @@ -0,0 +1,21 @@ +diff -urP up-imapproxy-1.2.6-dist/src/request.c up-imapproxy-1.2.6/src/request.c +--- up-imapproxy-1.2.6-dist/src/request.c 2008-01-28 07:15:08.000000000 -0600 ++++ up-imapproxy-1.2.6/src/request.c 2008-10-06 13:51:50.000000000 -0500 +@@ -714,7 +714,7 @@ + * avoid allocating additional buffers. Keep this in mind for future + * code modification... + */ +- snprintf( Username, BufLen, "Username:" ); ++ snprintf( Username, MAXUSERNAMELEN - 1, "Username:" ); + + EVP_EncodeBlock( EncodedUsername, Username, strlen( Username ) ); + +@@ -770,7 +770,7 @@ + /* + * Same drill all over again, except this time it's for the password. + */ +- snprintf( Password, BufLen, "Password:" ); ++ snprintf( Password, MAXPASSWDLEN - 1, "Password:" ); + + EVP_EncodeBlock( EncodedPassword, Password, strlen( Password ) ); + diff -r fbc8ef03d0ec -r 23ee2f4aac03 net-mail/up-imapproxy/up-imapproxy-1.2.6.ebuild --- a/net-mail/up-imapproxy/up-imapproxy-1.2.6.ebuild Fri Apr 10 13:18:15 2009 +0200 +++ b/net-mail/up-imapproxy/up-imapproxy-1.2.6.ebuild Mon Apr 13 20:09:55 2009 +0200 @@ -23,6 +23,7 @@ unpack ${A} && cd "${S}" sed -i -e 's:in\.imapproxyd:imapproxyd:g' \ README Makefile.in include/imapproxy.h || die "sed failed" + epatch "${FILESDIR}/${PN}-${PV}-overflow.patch" } src_compile() {