diff options
author | dogcow <dogcow@pkgsrc.org> | 2005-08-27 06:59:52 +0000 |
---|---|---|
committer | dogcow <dogcow@pkgsrc.org> | 2005-08-27 06:59:52 +0000 |
commit | cc5659358e13b3f61eeacb96f469fea181077bca (patch) | |
tree | ece06e7f74725d540227a4214b4f81383322e021 /multimedia/mplayer-share/patches | |
parent | 88c47fab7956817765c251b21101527fcd68cb86 (diff) | |
download | pkgsrc-cc5659358e13b3f61eeacb96f469fea181077bca.tar.gz |
Security fix for mplayer as given in
http://www.sven-tantau.de/public_files/mplayer/mplayer_20050824.txt .
bump PKGREVISION of affected pkgs.
Diffstat (limited to 'multimedia/mplayer-share/patches')
-rw-r--r-- | multimedia/mplayer-share/patches/patch-ag | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/multimedia/mplayer-share/patches/patch-ag b/multimedia/mplayer-share/patches/patch-ag new file mode 100644 index 00000000000..a5c11769c9c --- /dev/null +++ b/multimedia/mplayer-share/patches/patch-ag @@ -0,0 +1,16 @@ +$NetBSD: patch-ag,v 1.1 2005/08/27 06:59:52 dogcow Exp $ + +--- libmpcodecs/ad_pcm.c 2005/07/28 13:43:24 1.18 ++++ libmpcodecs/ad_pcm.c 2005/08/25 19:46:20 1.19 +@@ -98,8 +98,8 @@ + + static int decode_audio(sh_audio_t *sh_audio,unsigned char *buf,int minlen,int maxlen) + { +- int len=sh_audio->channels*sh_audio->samplesize-1; +- len=(minlen+len)&(~len); // sample align ++ unsigned len = sh_audio->channels*sh_audio->samplesize; ++ len = maxlen - maxlen % len; // sample align + len=demux_read_data(sh_audio->ds,buf,len); + return len; + } + |