commit | c75da4e16e421c3c9fe38cf21eac0cf55526838c | [log] [tgz] |
---|---|---|
author | qctecmdr <qctecmdr@localhost> | Mon Aug 02 20:44:54 2021 -0700 |
committer | Gerrit - the friendly Code Review server <code-review@localhost> | Mon Aug 02 20:44:54 2021 -0700 |
tree | 3d8a59f8e306081c95024e3466c0b2a83db77c85 | |
parent | 3d85302505ec2618bcff6938f2f130b17878685b [diff] | |
parent | afe1533e8fe56431bd310769904846b3417ba70c [diff] |
Merge "AGM: add check for null pointer before dereference"
diff --git a/service/src/graph.c b/service/src/graph.c index ec5eea1..46882a2 100644 --- a/service/src/graph.c +++ b/service/src/graph.c
@@ -1820,6 +1820,11 @@ int ret = -EINVAL; struct agm_buffer_config buffer_config = {0}; + if (graph_obj == NULL) { + AGM_LOGE("invalid graph object"); + return -EINVAL; + } + sess_obj = graph_obj->sess_obj; if (sess_obj == NULL) { AGM_LOGE("invalid sess object");