summaryrefslogtreecommitdiff
path: root/src/analysis
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2023-08-06 21:40:42 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2023-08-06 21:40:42 (GMT)
commitdbe05c349a0892306d7317d3c26a56e9b19eca92 (patch)
tree93739751af7def06bea9aa168ebb8210edb8aa95 /src/analysis
parent532ae1e0a10d00193719dcd1704744bf2966a25b (diff)
Prevent the ACISM backend from crashing when a scan is performed with no pattern.
Diffstat (limited to 'src/analysis')
-rw-r--r--src/analysis/scan/patterns/backends/acism.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/analysis/scan/patterns/backends/acism.c b/src/analysis/scan/patterns/backends/acism.c
index eef681a..97f8561 100644
--- a/src/analysis/scan/patterns/backends/acism.c
+++ b/src/analysis/scan/patterns/backends/acism.c
@@ -1165,6 +1165,7 @@ static void g_acism_backend_run_scan(const GAcismBackend *backend, GScanContext
#endif
root = backend->states;
+ if (root == NULL) goto done;
state = root;
@@ -1240,6 +1241,8 @@ static void g_acism_backend_run_scan(const GAcismBackend *backend, GScanContext
}
+ done:
+
g_object_unref(G_OBJECT(content));
}