changeset 383:2379a4d8d9c7

Tim Dufrane - fix segfault in pst_close()
author Carl Byington <carl@five-ten-sg.com>
date Thu, 25 Jul 2019 07:43:49 -0700
parents 7eab29e13e61
children 58149891ea7b
files AUTHORS ChangeLog NEWS configure.in libpst.spec.in src/libpst.c
diffstat 6 files changed, 17 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/AUTHORS	Thu Jul 25 07:18:19 2019 -0700
+++ b/AUTHORS	Thu Jul 25 07:43:49 2019 -0700
@@ -44,6 +44,7 @@
     Zachary Travis <ztravis@everlaw.com>
     Vitaliy Didik <ariman@inbox.ru>
     Alfredo Esteban <aedelatorre@gmail.com>
+    Tim Dufrane <tim.dufrane@gmail.com>
 
 Testing team:
     Mac OSX - Michael Watson <mike@mikeandgayle.com>
--- a/ChangeLog	Thu Jul 25 07:18:19 2019 -0700
+++ b/ChangeLog	Thu Jul 25 07:43:49 2019 -0700
@@ -1,3 +1,6 @@
+LibPST 0.6.73 (2019-07-25)
+    * Tim Dufrane - fix segfault in pst_close()
+
 LibPST 0.6.72 (2018-08-01)
 ===============================
     * Alfredo Esteban - add -l and -f options to lspst.
--- a/NEWS	Thu Jul 25 07:18:19 2019 -0700
+++ b/NEWS	Thu Jul 25 07:43:49 2019 -0700
@@ -1,4 +1,5 @@
-0.6.72  2017-12-07 Alfredo Esteban - add -l and -f options to lspst.
+0.6.73  2019-07-25 Tim Dufrane - fix segfault in pst_close()
+0.6.72  2018-08-01 Alfredo Esteban - add -l and -f options to lspst.
 0.6.71  2017-07-21 Zachary Travis - Add support for the OST 2013 format, and Content-Disposition filename key fix for outlook compatibility
 0.6.70  2017-02-08 Jeffrey Morlan - pst_getID2 must not recurse into children
 0.6.69  2016-10-29 fix bugs in code allowing folders containing multiple item types
--- a/configure.in	Thu Jul 25 07:18:19 2019 -0700
+++ b/configure.in	Thu Jul 25 07:43:49 2019 -0700
@@ -1,5 +1,5 @@
 AC_PREREQ(2.60)
-AC_INIT(libpst,0.6.72,carl@five-ten-sg.com)
+AC_INIT(libpst,0.6.73,carl@five-ten-sg.com)
 AC_CONFIG_SRCDIR([src/libpst.c])
 AC_CONFIG_HEADER([config.h])
 AC_CONFIG_MACRO_DIR([m4])
@@ -21,7 +21,7 @@
 #  6. libtool will build libpst.so.x.y.z where the SONAME is libpst.so.x
 #     and x=current-age, y=age, z=revision
 
-libpst_version_info='5:14:1'
+libpst_version_info='5:15:1'
 AC_SUBST(LIBPST_VERSION_INFO, [$libpst_version_info])
 libpst_so_major='4'
 AC_SUBST(LIBPST_SO_MAJOR, [$libpst_so_major])
@@ -54,6 +54,7 @@
 # 0.6.67    libpst.so.4     libpst.so.4.1.12
 # 0.6.68    libpst.so.4     libpst.so.4.1.13
 # 0.6.69    libpst.so.4     libpst.so.4.1.14
+# 0.6.73    libpst.so.4     libpst.so.4.1.15
 
 
 
--- a/libpst.spec.in	Thu Jul 25 07:18:19 2019 -0700
+++ b/libpst.spec.in	Thu Jul 25 07:43:49 2019 -0700
@@ -1,7 +1,7 @@
 Summary:            Utilities to convert Outlook .pst files to other formats
 Name:               @PACKAGE@
 Version:            @VERSION@
-Release:            4%{?dist}
+Release:            1%{?dist}
 License:            GPLv2+
 Source:             http://www.five-ten-sg.com/%{name}/packages/%{name}-%{version}.tar.gz
 URL:                http://www.five-ten-sg.com/%{name}/
@@ -178,6 +178,9 @@
 
 
 %changelog
+* Thu Jul 25 2019 Carl Byington <carl@five-ten-sg.com> 0.6.73-1
+- Tim Dufrane - fix segfault in pst_close()
+
 * Fri Jun 07 2019 Carl Byington <carl@five-ten-sg.com> 0.6.72-4
 - fixes for python3
 
--- a/src/libpst.c	Thu Jul 25 07:18:19 2019 -0700
+++ b/src/libpst.c	Thu Jul 25 07:43:49 2019 -0700
@@ -409,6 +409,10 @@
 
 int pst_close(pst_file *pf) {
     DEBUG_ENT("pst_close");
+    if (!pf) {
+        DEBUG_RET();
+        return 0;
+    }
     if (!pf->fp) {
         DEBUG_RET();
         return 0;