chiark / gitweb /
bus: do not segfault on zeros in errno mapping table
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 31 Oct 2014 13:31:02 +0000 (09:31 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 31 Oct 2014 15:32:00 +0000 (11:32 -0400)
commit5e071f200c4cc86443af07a876ee0e1c2901fda1
tree5c1d626fcaa0260e9eeb0d5bc2fe4941b171ee5c
parent919699ec301ea507edce4a619141ed22e789ac0d
bus: do not segfault on zeros in errno mapping table

Depending on the link order, holes might appear in the body of
the sd_bus_errnomap section. Ignore them.

Adds a simple test to print the table to help with debugging such
issues in the future.
src/libsystemd/sd-bus/bus-error.c
src/libsystemd/sd-bus/test-bus-error.c