From 7ae48207c7812eb11e2de434182ec48298b8e1bf Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Fri, 6 Nov 2015 09:30:15 +0000 Subject: [PATCH] Prevented a potential corruption in case of memory shortage. Coverity CID 28800. --- xorriso/iso_manip.c | 4 ++-- xorriso/xorriso_timestamp.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/xorriso/iso_manip.c b/xorriso/iso_manip.c index a287e2c0..6bdfbe29 100644 --- a/xorriso/iso_manip.c +++ b/xorriso/iso_manip.c @@ -3478,10 +3478,10 @@ int Xorriso_findi_sorted(struct XorrisO *xorriso, struct FindjoB *job, char *abs_path= NULL; off_t mem_needed= 0; - Xorriso_alloc_meM(abs_path, char, SfileadrL); - array_job.start_path= NULL; + Xorriso_alloc_meM(abs_path, char, SfileadrL); + if(job->action == 14 || job->action == 17) find_flag|= 4; if(job->action>=9 && job->action<=13) { /* actions which have own findjobs */ diff --git a/xorriso/xorriso_timestamp.h b/xorriso/xorriso_timestamp.h index c0d7607e..7bbcdcbf 100644 --- a/xorriso/xorriso_timestamp.h +++ b/xorriso/xorriso_timestamp.h @@ -1 +1 @@ -#define Xorriso_timestamP "2015.11.04.155640" +#define Xorriso_timestamP "2015.11.06.092940"