Hi,

since the last patch I sent to the list[1] there's been a new minor
version of weechat that fixes a possible buffer overflow:
http://dev.weechat.org/post/2012/11/09/Version-0.3.9.1

The suggested workaround[2] is to disable colors for now:
/set irc.network.colors_receive off

Patch attached. Works for me on sparc64 and amd64.

Not sure if this can/should be fixed in STABLE...
It should be possible to backport this patch:
http://git.savannah.gnu.org/gitweb/?p=weechat.git;a=commit;h=80f477f2c37b46bafcde1a35660cf095a95a05c4

Regards
        Simon

[1] http://marc.info/?l=openbsd-ports&m=134893598923111&w=2
[2] https://savannah.nongnu.org/bugs/?37704

Index: Makefile
===================================================================
RCS file: /cvs/ports/net/weechat/Makefile,v
retrieving revision 1.6
diff -u -r1.6 Makefile
--- Makefile    23 Sep 2012 17:05:49 -0000      1.6
+++ Makefile    16 Nov 2012 09:36:29 -0000
@@ -6,19 +6,14 @@
 COMMENT-ruby=  Ruby bindings for weechat
 COMMENT-tcl=   Tcl bindings for weechat
 
-V=             0.3.8
+V=             0.3.9.1
 DISTNAME=      weechat-${V}
 
 PKGNAME-main=  weechat-${V}
-REVISION-main= 2
 PKGNAME-lua=   weechat-lua-${V}
-REVISION-lua=  1
 PKGNAME-python=        weechat-python-${V}
-REVISION-python=0
 PKGNAME-ruby=  weechat-ruby-${V}
-REVISION-ruby= 1
 PKGNAME-tcl=   weechat-tcl-${V}
-REVISION-tcl=  0
 
 CATEGORIES=    net
 
@@ -78,7 +73,8 @@
                -DENABLE_LUA=yes \
                -DENABLE_TCL=yes \
                -DENABLE_PYTHON=yes \
-               -DHAVE_BACKTRACE=no
+               -DHAVE_BACKTRACE=no \
+               -DMANDIR=${PREFIX}/man
 
 post-install:
        $(INSTALL_DATA_DIR) ${PREFIX}/share/doc/weechat
Index: distinfo
===================================================================
RCS file: /cvs/ports/net/weechat/distinfo,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 distinfo
--- distinfo    26 Jun 2012 15:06:42 -0000      1.1.1.1
+++ distinfo    16 Nov 2012 09:36:29 -0000
@@ -1,5 +1,2 @@
-MD5 (weechat-0.3.8.tar.gz) = 8XRoCfgeVUZiiD68di8ruA==
-RMD160 (weechat-0.3.8.tar.gz) = s5/JdC24ZkqGxx5vg78eGPotXOQ=
-SHA1 (weechat-0.3.8.tar.gz) = ctYMHhc5Dx+1x9JyAWl+kAI2nLk=
-SHA256 (weechat-0.3.8.tar.gz) = QpPrnSnxG47owwEEnVflNay+pne8HcQasS/hu4rw8Q4=
-SIZE (weechat-0.3.8.tar.gz) = 3517366
+SHA256 (weechat-0.3.9.1.tar.gz) = mmrUqsvanFUk3FGcyHgmIdWbob8FVuZPWuT5EC8osp0=
+SIZE (weechat-0.3.9.1.tar.gz) = 3756617
Index: patches/patch-doc_CMakeLists_txt
===================================================================
RCS file: patches/patch-doc_CMakeLists_txt
diff -N patches/patch-doc_CMakeLists_txt
--- patches/patch-doc_CMakeLists_txt    26 Jun 2012 15:06:42 -0000      1.1.1.1
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,9 +0,0 @@
-$OpenBSD: patch-doc_CMakeLists_txt,v 1.1.1.1 2012/06/26 15:06:42 sthen Exp $
---- doc/CMakeLists.txt.orig    Tue Jun 26 12:44:21 2012
-+++ doc/CMakeLists.txt Tue Jun 26 12:45:09 2012
-@@ -35,4 +35,4 @@ IF(ENABLE_DOC)
- 
- ENDIF(ENABLE_DOC)
- 
--INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/weechat-curses.1 DESTINATION 
${SHAREDIR}/man/man1)
-+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/weechat-curses.1 DESTINATION 
${CMAKE_INSTALL_PREFIX}/man/man1)
Index: pkg/PLIST-main
===================================================================
RCS file: /cvs/ports/net/weechat/pkg/PLIST-main,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 PLIST-main
--- pkg/PLIST-main      26 Jun 2012 15:06:42 -0000      1.1.1.1
+++ pkg/PLIST-main      16 Nov 2012 09:36:29 -0000
@@ -13,6 +13,7 @@
 lib/weechat/plugins/perl.so
 lib/weechat/plugins/relay.so
 lib/weechat/plugins/rmodifier.so
+lib/weechat/plugins/script.so
 lib/weechat/plugins/xfer.so
 @man man/man1/weechat-curses.1
 share/doc/weechat/

Reply via email to