A message system like D-Bus for Liminix, taken from OpenWRT's ubus
Find a file
Petr Štetiar dac6c7c575 ubusd_monitor: fix possible null pointer dereference
This dereference could possibly happen if the calloc call fails as the
return value is unchecked. While at it refactor the code little bit to
make it easier to follow, use safe list iterator and provide return
value for ubusd_monitor_connect.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
2019-12-19 19:53:25 +01:00
examples examples: remove dead increments 2019-12-16 23:39:16 +01:00
lua lua: ubus_lua_do_subscribe: fix copy&paste error 2019-12-16 23:39:16 +01:00
tests add fuzzer and cram based unit tests 2019-12-16 23:39:16 +01:00
.gitignore examples: split client/server code 2012-10-24 14:37:57 +02:00
.gitlab-ci.yml add initial GitLab CI support 2019-12-16 23:39:16 +01:00
cli.c iron out all extra compiler warnings 2019-12-16 23:39:16 +01:00
CMakeLists.txt add fuzzer and cram based unit tests 2019-12-16 23:39:16 +01:00
libubus-acl.c iron out all extra compiler warnings 2019-12-16 23:39:16 +01:00
libubus-internal.h refactor ubusd.c into reusable ubusd_library 2019-12-16 23:39:16 +01:00
libubus-io.c refactor ubusd.c into reusable ubusd_library 2019-12-16 23:39:16 +01:00
libubus-obj.c libubus: check for non-NULL data before running callbacks 2018-07-25 10:45:34 +02:00
libubus-req.c workaround possibly false positive uses of memory after it is freed 2019-12-19 11:18:07 +01:00
libubus-sub.c libubus: fix passing the return code of the subscriber callback to the notifier 2013-03-17 18:29:38 +01:00
libubus.c workaround possibly false positive uses of memory after it is freed 2019-12-19 11:18:07 +01:00
libubus.h libubus-req: add data_cb callback handling for ubus notifications 2017-11-06 08:23:08 +01:00
ubus_common.h ubus_common: remove duplicate ARRAY_SIZE and add missing include 2019-12-19 11:18:07 +01:00
ubusd.c refactor ubusd.c into reusable ubusd_library 2019-12-16 23:39:16 +01:00
ubusd.h refactor ubusd.c into reusable ubusd_library 2019-12-16 23:39:16 +01:00
ubusd_acl.c iron out all extra compiler warnings 2019-12-16 23:39:16 +01:00
ubusd_acl.h ubusd_acl: event send access list support 2018-10-06 20:40:24 +02:00
ubusd_event.c workaround possibly false positive uses of memory after it is freed 2019-12-19 11:18:07 +01:00
ubusd_id.c ubusd: use avl_strcmp 2012-12-11 23:38:00 +01:00
ubusd_id.h add copyright/license information 2011-06-17 16:35:11 +02:00
ubusd_main.c refactor ubusd.c into reusable ubusd_library 2019-12-16 23:39:16 +01:00
ubusd_monitor.c ubusd_monitor: fix possible null pointer dereference 2019-12-19 19:53:25 +01:00
ubusd_obj.c workaround possibly false positive uses of memory after it is freed 2019-12-19 11:18:07 +01:00
ubusd_obj.h pass ubus_msg_buf to callback of internal object 2015-06-18 19:01:17 +02:00
ubusd_proto.c workaround possibly false positive uses of memory after it is freed 2019-12-19 11:18:07 +01:00
ubusmsg.h ubusd: add monitor support 2015-11-19 22:32:11 +01:00