Skip to content

tests: Expand coverage of testing valid message (un)marshalling

Simon McVittie requested to merge smcv/dbus:test-more-valid-messages into master
  • test-utils-glib: Add a backport of g_assert_cmpmem()

    This was new in GLib 2.46, and in principle we only require 2.40.

  • test: Assert that de-marshalling and re-marshalling is a no-op

  • test: Add valid message blobs with every type and most headers

Follow-up test coverage improvements after CVE-2022-42012. As well as being a test in its own right, having a slightly larger corpus of valid messages might be useful for fuzzing.

/cc @thiago @evverx

Merge request reports