diff --git a/audio/vorbis-tools/Makefile b/audio/vorbis-tools/Makefile index 1bd5fceae1e..6d262f35055 100644 --- a/audio/vorbis-tools/Makefile +++ b/audio/vorbis-tools/Makefile @@ -1,9 +1,9 @@ -# $OpenBSD: Makefile,v 1.35 2008/05/11 22:17:28 jasper Exp $ +# $OpenBSD: Makefile,v 1.36 2009/07/17 08:20:37 weerd Exp $ COMMENT= play, encode, and manage Ogg Vorbis files DISTNAME= vorbis-tools-1.2.0 -PKGNAME= ${DISTNAME}p0 +PKGNAME= ${DISTNAME}p1 CATEGORIES= audio HOMEPAGE= http://www.vorbis.com/ diff --git a/audio/vorbis-tools/patches/patch-ogg123_vorbis_comments_c b/audio/vorbis-tools/patches/patch-ogg123_vorbis_comments_c new file mode 100644 index 00000000000..e57c5d205c4 --- /dev/null +++ b/audio/vorbis-tools/patches/patch-ogg123_vorbis_comments_c @@ -0,0 +1,14 @@ +strcspn(3) does not work this way, fix SIGSEGV on unknown comments + +$OpenBSD: patch-ogg123_vorbis_comments_c,v 1.1 2009/07/17 08:20:37 weerd Exp $ +--- ogg123/vorbis_comments.c.orig Wed Jul 8 18:44:47 2009 ++++ ogg123/vorbis_comments.c Wed Jul 8 18:45:13 2009 +@@ -72,7 +72,7 @@ char *lookup_comment_prettyprint (char *comment, int * + + /* Use default formatting */ + j = strcspn(comment, "="); +- if (j) { ++ if (j != strlen(comment)) { + *offset = j + 1; + s = malloc(j + 2); + if (s == NULL) {