@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, ncurses, readline, autoreconfHook }:
1+{ stdenv, fetchurl, fetchpatch, ncurses, readline, autoreconfHook }:
22
33stdenv.mkDerivation rec {
44 version = "1.7.0";
@@ -14,7 +14,14 @@ stdenv.mkDerivation rec {
1414 buildInputs = [ ncurses readline ];
1515 nativeBuildInputs = [ autoreconfHook ];
1616
17− patches = [ ./0001-Make-hunspell-look-in-XDG_DATA_DIRS-for-dictionaries.patch ];
17+ patches = [
18+ ./0001-Make-hunspell-look-in-XDG_DATA_DIRS-for-dictionaries.patch
19+ (fetchpatch {
20+ name = "CVE-2019-16707.patch";
21+ url = "https://github.com/hunspell/hunspell/commit/ac938e2ecb48ab4dd21298126c7921689d60571b.patch";
22+ sha256 = "0bwfksz87iy7ikx3fb54zd5ww169qfm9kl076hsch3cs8p30s8az";
23+ })
24+ ];
1825
1926 postPatch = ''
2027 patchShebangs tests