Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0bf298df24f7
Choose a base ref
...
head repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 18f8c1fe060b
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Nov 8, 2020

  1. libexif: apply patches for CVE-2020-0198, CVE-2020-0452

    * CVE-2020-0198: unsigned integer overflow in exif_data_load_data_content
    * CVE-2020-0452: compiler optimization could remove an a bufferoverflow check, making a buffer overflow possible with some EXIF tags
    
    Fixes: CVE-2020-0198, CVE-2020-0452
    (cherry picked from commit 602d26e)
    mweinelt authored and erictapen committed Nov 8, 2020
    Copy the full SHA
    18f8c1f View commit details
Showing with 15 additions and 1 deletion.
  1. +15 −1 pkgs/development/libraries/libexif/default.nix
16 changes: 15 additions & 1 deletion pkgs/development/libraries/libexif/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, autoreconfHook, gettext }:
{ stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, gettext }:

stdenv.mkDerivation rec {
pname = "libexif";
@@ -11,6 +11,20 @@ stdenv.mkDerivation rec {
sha256 = "0mzndakdi816zcs13z7yzp7hj031p2dcyfq2p391r63d9z21jmy1";
};

patches = [
(fetchpatch {
name = "CVE-2020-0198.patch";
url = "https://github.com/libexif/libexif/commit/ce03ad7ef4e8aeefce79192bf5b6f69fae396f0c.patch";
sha256 = "1040278g5dbq3vvlyk8cmzb7flpi9bfsp99268hw69i6ilwbdf2k";
})
(fetchpatch {
name = "CVE-2020-0452.patch";
url = "https://github.com/libexif/libexif/commit/9266d14b5ca4e29b970fa03272318e5f99386e06.patch";
excludes = [ "NEWS" ];
sha256 = "0k4z1gbbkli6wwyy9qm2qvn0h00qda6wqym61nmmbys7yc2zryj6";
})
];

nativeBuildInputs = [ autoreconfHook gettext ];

meta = with stdenv.lib; {