[esnacc-dev] [PATCH 4/4] compiler: Fix automatic tags null dereference

Aaron Conole aconole at bytheb.org
Wed Dec 14 15:27:08 UTC 2016


Since the tag-list can be null, return here.  That will prevent a crash
further in the code.

Fixes: 67b3312887d6 ("compiler/core/snacc-util: Introduce automatic tag utils")
Signed-off-by: Aaron Conole <aconole at bytheb.org>
---
 compiler/core/snacc-util.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/compiler/core/snacc-util.c b/compiler/core/snacc-util.c
index 5e774ea..621b961 100644
--- a/compiler/core/snacc-util.c
+++ b/compiler/core/snacc-util.c
@@ -1644,6 +1644,7 @@ AutomaticTagNamed PARAMS ((l, all),
 
     if (l == NULL) {
         fprintf(errFileG, "AutomaticTagNamed - NULL tag list.\n");
+        return;
     }
 
     /* Two passes */
-- 
2.7.4




More information about the dev mailing list