Systemd/src/libsystemd
David Herrmann 12b7dff45b sd-netlink: make sure the root-level type is nested
In sd-netlink-message, we always guarantee that the currently selected
type-system is non-NULL. Otherwise, we would be unable to parse any types
in the current container level. Hence, this assertion must be true:
    message->container_type_system[m->n_containers] != NULL

During message_new() we currently do not verify that this assertion is
true. Instead, we blindly access nl_type->type_system and use it (which
might be NULL for basic types and unions). Fix this, by explicitly
checking that the root-level type is nested.

Note that this is *not* a strict requirement of netlink, but it's a strict
requirement for all message types we currently support. Furthermore, all
the callers of message_new() already verify that only supported types are
passed, therefore, this is a pure cosmetic check. However, it might be
needed on the future, so make sure we don't trap into this once we change
the type-system.
2015-06-24 13:45:56 +02:00
..
sd-bus export sd_bus_object_added() / _removed() 2015-06-21 22:21:38 -04:00
sd-daemon sd-daemon: simplify sd_pid_notify_with_fds 2015-03-13 23:42:17 -04:00
sd-device hashmap: fix iterators to not skip entries 2015-06-14 16:56:02 +02:00
sd-event sd-event: make errors on EPOLL_CTL_DEL pseudo-fatal 2015-06-17 09:13:48 +02:00
sd-hwdb hashmap: fix iterators to not skip entries 2015-06-14 16:56:02 +02:00
sd-id128 build-sys: add all source files and no built files to the tar ball 2015-06-23 12:43:15 +02:00
sd-login build-sys: split internal basic/ library from shared/ 2015-06-11 10:52:46 +02:00
sd-netlink sd-netlink: make sure the root-level type is nested 2015-06-24 13:45:56 +02:00
sd-network sd-network: fix CID 1306198 2015-06-11 14:08:56 +05:30
sd-path tree-wide: there is no ENOTSUP on linux 2015-03-13 14:10:39 +01:00
sd-resolve Add (void) where we don't care about return value 2015-03-15 17:26:58 -04:00
sd-utf8 libsystemd: split up into subdirs 2014-01-21 14:41:35 +01:00
.gitignore libsystemd: remove list of symbols to export only in the future 2015-06-17 16:21:13 +02:00
libsystemd.pc.in build-sys: update .pc.in files 2014-01-25 18:55:58 -05:00
libsystemd.sym export sd_bus_object_added() / _removed() 2015-06-21 22:21:38 -04:00
Makefile libsystemd-bus: rename to libsystemd 2014-01-13 18:54:19 +01:00