gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [libextractor] 02/27: fix potential assign-after-free


From: gnunet
Subject: [GNUnet-SVN] [libextractor] 02/27: fix potential assign-after-free
Date: Sun, 15 Oct 2017 21:34:26 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository libextractor.

commit a666aaa2851d695efef37bc431645522a6d8e7f9
Author: Christian Grothoff <address@hidden>
AuthorDate: Sun Oct 15 19:41:43 2017 +0200

    fix potential assign-after-free
---
 ChangeLog                    | 3 ++-
 src/main/extractor_ipc_gnu.c | 2 ++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 0b9e9cef..c1a730a9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 Sun Oct 15 19:36:41 CEST 2017
-       Fix potential file descriptor leak (on error handling path). -CG
+       Fix potential file descriptor leak (on error handling path).
+       Fix potential assign-after-free (on IPC error handling path). -CG
 
 Fri Oct 13 12:30:37 CEST 2017
        Properly check read error in NSF plugin (from signedness confusion) 
found by Leon Zhao. -CG
diff --git a/src/main/extractor_ipc_gnu.c b/src/main/extractor_ipc_gnu.c
index e08bb611..146fd49f 100644
--- a/src/main/extractor_ipc_gnu.c
+++ b/src/main/extractor_ipc_gnu.c
@@ -545,6 +545,7 @@ EXTRACTOR_IPC_channel_recv_ (struct EXTRACTOR_Channel 
**channels,
              LOG_STRERROR ("realloc");
              EXTRACTOR_IPC_channel_destroy_ (channel);
              channels[i] = NULL;
+              continue;
            }
          channel->mdata = ndata;
        }
@@ -563,6 +564,7 @@ EXTRACTOR_IPC_channel_recv_ (struct EXTRACTOR_Channel 
**channels,
                channel->plugin->libname);
          EXTRACTOR_IPC_channel_destroy_ (channel);
          channels[i] = NULL;
+          continue;
        }
       else
        {

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]