summarylogtreecommitdiffstats
path: root/openslp-2.0.0-null-pointer-deref.patch
diff options
context:
space:
mode:
authorMantas Mikulėnas2018-01-15 08:01:25 +0200
committerMantas Mikulėnas2018-01-15 08:01:25 +0200
commit50a69b07a95a26d74054adaeea96a963e5eba6fc (patch)
treedaff1945614340cce409e142ac97621f1e3178d7 /openslp-2.0.0-null-pointer-deref.patch
downloadaur-50a69b07a95a26d74054adaeea96a963e5eba6fc.tar.gz
initial import
Diffstat (limited to 'openslp-2.0.0-null-pointer-deref.patch')
-rw-r--r--openslp-2.0.0-null-pointer-deref.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/openslp-2.0.0-null-pointer-deref.patch b/openslp-2.0.0-null-pointer-deref.patch
new file mode 100644
index 000000000000..3c07d6efb42a
--- /dev/null
+++ b/openslp-2.0.0-null-pointer-deref.patch
@@ -0,0 +1,12 @@
+diff -up openslp-2.0.0/common/slp_xmalloc.c.orig openslp-2.0.0/common/slp_xmalloc.c
+--- openslp-2.0.0/common/slp_xmalloc.c.orig 2012-12-07 01:52:08.000000000 +0100
++++ openslp-2.0.0/common/slp_xmalloc.c 2016-05-23 12:58:57.953532979 +0200
+@@ -203,6 +203,8 @@ void * _xrealloc(const char * file, int
+ if (x->size != size)
+ {
+ newptr = _xmalloc(file, line, size);
++ if (newptr == 0)
++ return 0;
+ memcpy(newptr, ptr, x->size);
+ _xfree(file, line, x);
+ }