From: Sebastian Harl Date: Sat, 2 Aug 2014 10:35:12 +0000 (+0200) Subject: data: Let sdb_data_expr_eval() check it's arguments. X-Git-Tag: sysdb-0.4.0~55 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5d46c40d53c7fb6aae658e08c8e8015e2be72a40;p=sysdb.git data: Let sdb_data_expr_eval() check it's arguments. --- diff --git a/src/core/data.c b/src/core/data.c index fc646f0..0f10538 100644 --- a/src/core/data.c +++ b/src/core/data.c @@ -208,6 +208,8 @@ int sdb_data_expr_eval(int op, const sdb_data_t *d1, const sdb_data_t *d2, sdb_data_t *res) { + if ((! d1) || (! d2) || (! res)) + return -1; switch (op) { case SDB_DATA_CONCAT: return data_concat(d1, d2, res);