liblouis: apply patch for CVE-2022-26981

Fixes: CVE-2022-26981

Refs:
liblouis/liblouis#1185
GHSA-xrp8-mw8v-p6mq
https://nvd.nist.gov/vuln/detail/CVE-2022-26981

(cherry-pick of a4f5b169f1)
This commit is contained in:
Robert Scott
2022-06-21 00:19:23 +01:00
parent 15463250cb
commit 722e4976bc

View File

@@ -1,5 +1,6 @@
{ fetchFromGitHub
, lib, stdenv
, fetchpatch
, autoreconfHook
, pkg-config
, gettext
@@ -21,6 +22,14 @@ stdenv.mkDerivation rec {
sha256 = "sha256-vuD+afTOzldhfCRG5ghnWulNhip7BaTE7GfPhxXSMFw=";
};
patches = [
(fetchpatch {
name = "CVE-2022-26981.patch";
url = "https://github.com/liblouis/liblouis/commit/73751be7a5617bfff4a735ae095203a2d3ec50ef.patch";
sha256 = "sha256-PvGG62QHVslrClZP903AYCBof6jDzNe4L8eFU8X0vF4=";
})
];
outputs = [ "out" "dev" "man" "info" "doc" ];
nativeBuildInputs = [