python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / openslp / CVE-2016-4912.patch
blob06223deda89b09225e0b34fef0852bd733dd0255
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);
10 return newptr;