A message system like D-Bus for Liminix, taken from OpenWRT's ubus
Find a file
Alexandru Ardelean 996e16b2cb ubusd: replace ubusd_msg_unshare() with ubus_msg_new() to prevent invalid free-ing
The realloc is problematic mostly with large packets, as the pointer changes
so what eventually gets free'd is invalid.
Note that ub ptr param in the  call will be passed on to a ubus_msg_free(),
right after ubus_msg_ref() finishes.

This bug stayed hidden the same way as the bug in libubus writev_retry().
Since the write/sendmsg function can send about ~200k the ubus_msg_enqueue()
call does not get triggered.
2014-07-03 12:45:49 +02:00
examples libubus: close file descriptor after passing it in the status msg 2014-02-27 16:48:55 +01:00
lua lua: forward return codes from lua to ubus 2014-05-05 19:56:31 +02:00
systemd add systemd support 2013-03-04 19:11:21 +01:00
.gitignore examples: split client/server code 2012-10-24 14:37:57 +02:00
cli.c cli: implement wait_for 2014-05-06 16:58:11 +02:00
CMakeLists.txt ubus: increase message size limit and make it configurable at build-time 2014-07-03 12:44:19 +02:00
libubus-internal.h libubus: always defer processing incoming invoke/unsubscribe/notify if there is a request pending 2014-06-24 22:34:53 +02:00
libubus-io.c libubus: fix writev_retry() function when writing large packets 2014-07-03 12:45:30 +02:00
libubus-obj.c libubus: add support for defining a policy mask 2014-04-27 00:40:25 +02:00
libubus-req.c libubus: fix deferring invoke processing for non-uloop usage 2014-06-25 10:24:27 +02: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 ubus: increase message size limit and make it configurable at build-time 2014-07-03 12:44:19 +02:00
libubus.h libubus: add logic to reduce msgbuf data size after 16 small messages 2014-07-03 12:45:13 +02:00
ubus_common.h make UBUS_UNIX_SOCKET configurable via cmake 2013-03-04 19:11:15 +01:00
ubusd.c ubusd: replace ubusd_msg_unshare() with ubus_msg_new() to prevent invalid free-ing 2014-07-03 12:45:49 +02:00
ubusd.h ubusd: implement protocol support for passing file descriptors as part of request completion msgs from objects to clients 2014-02-18 15:03:53 +01:00
ubusd_event.c make a few functions static 2012-05-29 00:40:50 +02: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_obj.c remove the "method" argument for object subscription 2012-12-14 13:11:40 +01:00
ubusd_obj.h remove the "method" argument for object subscription 2012-12-14 13:11:40 +01:00
ubusd_proto.c ubusd: fix processing object method signatures 2014-04-01 13:45:29 +02:00
ubusmsg.h ubus: increase message size limit and make it configurable at build-time 2014-07-03 12:44:19 +02:00