[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pspp-cvs] pspp/src/libpspp ChangeLog taint.c
From: |
John Darrington |
Subject: |
[Pspp-cvs] pspp/src/libpspp ChangeLog taint.c |
Date: |
Mon, 24 Dec 2007 03:54:38 +0000 |
CVSROOT: /sources/pspp
Module name: pspp
Changes by: John Darrington <jmd> 07/12/24 03:54:38
Modified files:
src/libpspp : ChangeLog taint.c
Log message:
Ignore null pointer in taint_destroy. Closes bug #21863
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/pspp/src/libpspp/ChangeLog?cvsroot=pspp&r1=1.85&r2=1.86
http://cvs.savannah.gnu.org/viewcvs/pspp/src/libpspp/taint.c?cvsroot=pspp&r1=1.4&r2=1.5
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/pspp/pspp/src/libpspp/ChangeLog,v
retrieving revision 1.85
retrieving revision 1.86
diff -u -b -r1.85 -r1.86
--- ChangeLog 25 Nov 2007 19:11:39 -0000 1.85
+++ ChangeLog 24 Dec 2007 03:54:38 -0000 1.86
@@ -1,3 +1,7 @@
+2007-12-24 John Darrington <address@hidden>
+
+ * taint.c (taint_destroy): Return true if pointer is null.
+
2007-11-25 Ben Pfaff <address@hidden>
* float-format.c (assemble_number): Only store 32 bits for Z short
Index: taint.c
===================================================================
RCS file: /sources/pspp/pspp/src/libpspp/taint.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- taint.c 7 Jul 2007 06:14:22 -0000 1.4
+++ taint.c 24 Dec 2007 03:54:38 -0000 1.5
@@ -95,6 +95,8 @@
bool
taint_destroy (struct taint *taint)
{
+ if ( taint )
+ {
bool was_tainted = taint_is_tainted (taint);
if (--taint->ref_cnt == 0)
{
@@ -115,6 +117,9 @@
free (taint);
}
return !was_tainted;
+ }
+
+ return true;
}
/* Adds a propagation relationship from FROM to TO. This means
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pspp-cvs] pspp/src/libpspp ChangeLog taint.c,
John Darrington <=