dbus/test
Simon McVittie b9f914fa27 test/data: Add messages that reproduce dbus/dbus#413, dbus/dbus#418
In debug builds with "embedded tests" enabled, these will automatically
be used as input for the message-internals test.

Some of the messages themselves are output from a fuzzer, others are
simplifications to include only one reason for lack of validity per
message.

I've included an annotated hex-dump for each message here, but the dbus
test suite doesn't currently know how to convert hex to binary, so I've
also committed the corresponding binary. See the comment at the top of
each hex-dump for how to create the binary version (which requires the
xxd tool shipped with vim).

It would be nice for the dbus test suite to be able to convert the
annotated hex-dump to binary, either at build-time with a Python script
or at runtime by loading the text file and decoding the hex, but I don't
want to block on that for dbus/dbus#413 and dbus/dbus#418.

Reproduces: https://gitlab.freedesktop.org/dbus/dbus/-/issues/413
Reproduces: https://gitlab.freedesktop.org/dbus/dbus/-/issues/418
Signed-off-by: Simon McVittie <smcv@collabora.com>
(cherry picked from commit d633016f73)
[backport to 1.14.x: discard Meson build system updates]
(cherry picked from commit c0bfcc0978)
[backport to 1.12.x: resolve conflicts vs. Autotools before 09076dfe]
2022-10-05 10:46:27 +01:00
..
data test/data: Add messages that reproduce dbus/dbus#413, dbus/dbus#418 2022-10-05 10:46:27 +01:00
integration tests: Ensure session bus has started before integration test 2022-02-25 14:57:18 +00:00
internals test: Skip TCP tests if getaddrinfo doesn't work 2018-06-04 17:56:31 +01:00
name-test Merge branch 'dbus-1.10' 2017-07-07 13:16:49 +01:00
.gitignore Update .gitignore files 2015-02-03 15:40:01 +00:00
corrupt.c test: Skip TCP tests if getaddrinfo doesn't work 2018-06-04 17:56:31 +01:00
dbus-daemon-eavesdrop.c tests: Consistently don't try to kill pid 0 2017-02-21 11:56:56 +00:00
dbus-daemon.c dbus-daemon test: Don't test fd limits if in an unprivileged container 2020-05-15 11:23:15 +01:00
dbus-test-runner Add support for installing most of the modular tests 2011-06-10 18:32:35 +01:00
fdpass.c fdpass test: Assert that we don't leak file descriptors 2020-06-02 10:43:39 +01:00
glib-tap-test.sh When running TAP tests, filter out trailing \r from Windows .exe 2015-10-29 05:50:27 +01:00
loopback.c test: Skip TCP tests if getaddrinfo doesn't work 2018-06-04 17:56:31 +01:00
Makefile.am test/data: Add messages that reproduce dbus/dbus#413, dbus/dbus#418 2022-10-05 10:46:27 +01:00
manual-authz.c tests: reassure clang that oom() does in fact not return 2015-02-24 11:14:02 +00:00
manual-backtrace.c manual-backtrace: use proper prototypes, and make functions static 2015-11-17 15:32:43 +00:00
manual-dir-iter.c test: Add a missing OOM path in manual-dir-iter test 2017-02-14 17:45:08 +00:00
manual-paths.c Fix function declarations 2016-10-10 15:09:28 +01:00
manual-tcp.c Add manual tcp test case. 2015-01-30 09:33:40 +01:00
marshal.c Add a common test_init() for GLib tests which prevents hanging forever 2015-02-04 17:15:36 +00:00
message.c Test dbus_message_iter_abandon_container_if_open under OOM conditions 2017-07-05 16:22:54 +01:00
monitor.c Add a regression test for applying bus policy to broadcasts/unicasts 2017-07-28 11:24:20 +01:00
relay.c test: Skip TCP tests if getaddrinfo doesn't work 2018-06-04 17:56:31 +01:00
sd-activation.c test: Remove an unnecessary NULL check in sd-activation 2017-03-20 14:54:40 +00:00
shell-test.c shell-test: Don't use _dbus_get_tmpdir() 2017-02-16 16:00:14 +00:00
spawn-test.c Only redirect child processes to systemd Journal if using syslog 2016-09-30 19:36:50 +01:00
syntax.c test-syntax: Exercise correctly- and incorrectly-nested structs, dicts 2022-10-05 10:46:05 +01:00
tap-test.sh.in Run most tests under the TAP driver, with a simple adaptor for non-TAP tests 2015-04-16 13:06:29 +01:00
test-apparmor-activation.sh Add an integration test for AppArmor mediating activation 2016-11-28 12:11:52 +00:00
test-dbus-daemon-fork.sh test-dbus-daemon-fork: exercise closed stdin, stdout, stderr 2016-08-12 18:21:36 +01:00
test-dbus-launch-eval.sh tests: Don't exercise GetMachineId() or autolaunch if no machine ID 2017-06-08 18:30:39 +01:00
test-dbus-launch-x11.sh tests: Don't exercise GetMachineId() or autolaunch if no machine ID 2017-06-08 18:30:39 +01:00
test-exit.c Include config.h as the first thing in every .c file 2013-02-22 13:08:27 +00:00
test-names.c Add missing function attributes suggested by clang (but not by gcc) 2016-10-13 22:44:13 +01:00
test-segfault.c test-segfault: mark exception_handler as NORETURN 2016-10-13 22:44:13 +01:00
test-service.c test: Simplify error checking path in test-service slightly 2017-02-13 16:03:05 +00:00
test-shell-service.c Add missing function attributes suggested by clang (but not by gcc) 2016-10-13 22:44:13 +01:00
test-sleep-forever.c fix warning, use Sleep, not _sleep on windows (cherry picked from commit ea36c743ad60a2dd5c6286571d1a475903519809) 2009-11-30 12:00:14 +01:00
test-utils-glib.c tests: On Unix, include <netinet/in.h> for IPPROTO_TCP 2020-08-14 16:03:51 +00:00
test-utils-glib.h test: Skip TCP tests if getaddrinfo doesn't work 2018-06-04 17:56:31 +01:00
test-utils.c Add missing function attributes suggested by clang (but not by gcc) 2016-10-13 22:44:13 +01:00
test-utils.h tests: always use libdbus-internal for main loop, never dbus-glib 2015-02-20 20:49:32 +00:00
thread-blocking.c Add new test for waiting on pending calls in threads 2018-02-07 07:34:35 +00:00
uid-permissions.c test_get_dbus_daemon: Take a custom XDG_RUNTIME_DIR as an argument 2017-02-20 12:52:38 +00:00