Skip to content

Commit ecc8eb6

Browse files
committedJan 6, 2018
openslp: Fix CVE-2016-4912
(cherry picked from commit 1aca02b)
1 parent bcffc98 commit ecc8eb6

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--- a/common/slp_xmalloc.c
2+
+++ b/common/slp_xmalloc.c
3+
@@ -206,7 +206,7 @@ void * _xrealloc(const char * file, int line, void * ptr, size_t size)
4+
if (newptr == 0)
5+
return 0;
6+
memcpy(newptr, ptr, x->size);
7+
- _xfree(file, line, x);
8+
+ _xfree(file, line, ptr);
9+
}
10+
return newptr;
11+
}

‎pkgs/development/libraries/openslp/default.nix

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ stdenv.mkDerivation {
1919
url = "https://src.fedoraproject.org/cgit/rpms/openslp.git/plain/openslp-2.0.0-cve-2016-7567.patch";
2020
sha256 = "0zp61axx93b7nrbsyhn2x4dnw7n9y6g4rys21hyqxk4khrnc2yr9";
2121
})
22+
./CVE-2016-4912.patch
2223
];
2324

2425
meta = with stdenv.lib; {

0 commit comments

Comments
 (0)
Please sign in to comment.