summaryrefslogtreecommitdiff
path: root/multimedia/mplayer-share/patches
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2004-03-31 13:23:27 +0000
committerwiz <wiz@pkgsrc.org>2004-03-31 13:23:27 +0000
commitbf0c4649edb02cbdd949cb84f72c12df718cbd0f (patch)
treebc29c5c18e0183a2018b2629fa3bf5eceac1087f /multimedia/mplayer-share/patches
parent75c399a89ef6febf711e1cd827d2ac17e4f954d5 (diff)
downloadpkgsrc-bf0c4649edb02cbdd949cb84f72c12df718cbd0f.tar.gz
Upgrade mplayer, gmplayer, and mencoder to PKGREVISION 2:
Fix remotely exploitable buffer overflow.
Diffstat (limited to 'multimedia/mplayer-share/patches')
-rw-r--r--multimedia/mplayer-share/patches/patch-ac13
1 files changed, 13 insertions, 0 deletions
diff --git a/multimedia/mplayer-share/patches/patch-ac b/multimedia/mplayer-share/patches/patch-ac
new file mode 100644
index 00000000000..89e72d36712
--- /dev/null
+++ b/multimedia/mplayer-share/patches/patch-ac
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1 2004/03/31 13:23:27 wiz Exp $
+
+--- libmpdemux/http.c.orig Wed Nov 13 10:02:55 2002
++++ libmpdemux/http.c
+@@ -175,7 +175,7 @@ http_build_request( HTTP_header_t *http_
+ if( http_hdr->method==NULL ) http_set_method( http_hdr, "GET");
+ if( http_hdr->uri==NULL ) http_set_uri( http_hdr, "/");
+ else {
+- uri = (char*)malloc(strlen(http_hdr->uri)*2);
++ uri = (char*)malloc((strlen(http_hdr->uri)*3) + 1);
+ if( uri==NULL ) {
+ mp_msg(MSGT_NETWORK,MSGL_ERR,"Memory allocation failed\n");
+ return NULL;