Skip to content

Commit

Permalink
Merge pull request #34693 from andir/17.09/mpv
Browse files Browse the repository at this point in the history
[17.09] mpv: fix CVE-2018-6460
  • Loading branch information
andir committed Feb 7, 2018
2 parents 7661489 + 5b18585 commit 4824f56
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions pkgs/applications/video/mpv/default.nix
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, fetchFromGitHub, makeWrapper
{ stdenv, fetchurl, fetchpatch, fetchFromGitHub, makeWrapper
, docutils, perl, pkgconfig, python3, which, ffmpeg
, freefont_ttf, freetype, libass, libpthreadstubs
, lua, lua5_sockets, libuchardet, libiconv ? null, darwin
Expand Down Expand Up @@ -90,7 +90,15 @@ in stdenv.mkDerivation rec {
sha256 = "0746kmsg69675y5c70vn8imcr9d1zpjz97f27xr1vx00yjpd518v";
};

patchPhase = ''
patches = [
(fetchpatch {
name = "CVE-2018-6360.patch";
url = https://salsa.debian.org/multimedia-team/mpv/raw/ddface85a1adfdfe02ffb25b5ac7fac715213b97/debian/patches/09_ytdl-hook-whitelist-protocols.patch;
sha256 = "1gb1lkjbr8rv4v9ji6w5z97kbxbi16dbwk2255ajbvngjrc7vivv";
})
];

postPatch = ''
patchShebangs ./TOOLS/
'';

Expand Down

0 comments on commit 4824f56

Please sign in to comment.