Skip to content

Commit

Permalink
openslp: Fix CVE-2016-4912
Browse files Browse the repository at this point in the history
  • Loading branch information
adisbladis committed Jan 6, 2018
1 parent 45f6d97 commit 1aca02b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pkgs/development/libraries/openslp/CVE-2016-4912.patch
@@ -0,0 +1,11 @@
--- a/common/slp_xmalloc.c
+++ b/common/slp_xmalloc.c
@@ -206,7 +206,7 @@ void * _xrealloc(const char * file, int line, void * ptr, size_t size)
if (newptr == 0)
return 0;
memcpy(newptr, ptr, x->size);
- _xfree(file, line, x);
+ _xfree(file, line, ptr);
}
return newptr;
}
1 change: 1 addition & 0 deletions pkgs/development/libraries/openslp/default.nix
Expand Up @@ -19,6 +19,7 @@ stdenv.mkDerivation {
url = "https://src.fedoraproject.org/cgit/rpms/openslp.git/plain/openslp-2.0.0-cve-2016-7567.patch";
sha256 = "0zp61axx93b7nrbsyhn2x4dnw7n9y6g4rys21hyqxk4khrnc2yr9";
})
./CVE-2016-4912.patch
];

meta = with stdenv.lib; {
Expand Down

0 comments on commit 1aca02b

Please sign in to comment.