From 7e260ee39c94843bbe01e0ee9ddc9adbb1b147b4 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Tue, 10 Nov 2015 09:09:24 +0000 Subject: [PATCH] Prevented possible NULL pointer dereference. Coverity CID 28724. --- xorriso/drive_mgt.c | 2 ++ xorriso/xorriso_timestamp.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/xorriso/drive_mgt.c b/xorriso/drive_mgt.c index c0e11da9..7ec7df37 100644 --- a/xorriso/drive_mgt.c +++ b/xorriso/drive_mgt.c @@ -2609,6 +2609,8 @@ ex:; int Xorriso__wait_chunk_md5(struct xorriso_md5_state *state, int u_wait, int flag) { + if(state->chunk_state == NULL) + return(1); while(state->chunk_state[state->chunk_w_idx] == 1) { /* >>> have a timeout ? */; diff --git a/xorriso/xorriso_timestamp.h b/xorriso/xorriso_timestamp.h index c1372512..234fb0d6 100644 --- a/xorriso/xorriso_timestamp.h +++ b/xorriso/xorriso_timestamp.h @@ -1 +1 @@ -#define Xorriso_timestamP "2015.11.10.084903" +#define Xorriso_timestamP "2015.11.10.090901"