forked from mirrors/nixpkgs
cairo: add patch for CVE-2020-35492 (PR: #131949)
This commit is contained in:
parent
ae76abd3b9
commit
e591a6235d
|
@ -42,6 +42,16 @@ in stdenv.mkDerivation rec {
|
|||
url = "https://gitlab.freedesktop.org/cairo/cairo/commit/5e34c5a9640e49dcc29e6b954c4187cfc838dbd1.patch";
|
||||
sha256 = "yCwsDUY7efVvOZkA6a0bPS+RrVc8Yk9bfPwWHeOjq5o=";
|
||||
})
|
||||
|
||||
# Fixes CVE-2020-35492; see https://github.com/NixOS/nixpkgs/issues/120364.
|
||||
# CVE information: https://nvd.nist.gov/vuln/detail/CVE-2020-35492
|
||||
# Upstream PR: https://gitlab.freedesktop.org/cairo/cairo/merge_requests/85
|
||||
(fetchpatch {
|
||||
name = "CVE-2020-35492.patch";
|
||||
includes = [ "src/cairo-image-compositor.c" ];
|
||||
url = "https://github.com/freedesktop/cairo/commit/78266cc8c0f7a595cfe8f3b694bfb9bcc3700b38.patch";
|
||||
sha256 = "048nzfz7rkgqb9xs0dfs56qdw7ckkxr87nbj3p0qziqdq4nb6wki";
|
||||
})
|
||||
] ++ optionals stdenv.hostPlatform.isDarwin [
|
||||
# Workaround https://gitlab.freedesktop.org/cairo/cairo/-/issues/121
|
||||
./skip-configure-stderr-check.patch
|
||||
|
|
Loading…
Reference in a new issue