diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-08-03 18:05:27 +0200 |
---|---|---|
committer | Lukáš Nykrýn <lnykryn@redhat.com> | 2019-05-03 12:50:30 +0200 |
commit | f6af2bfe4b353b25a61c362c3ada9be06c8f15c9 (patch) | |
tree | a04afa9590fdf42b61a94db68000338b3b35ef2b | |
parent | 03f2823251d39ea455c2e98ae8bf109f6caf153f (diff) | |
download | systemd-f6af2bfe4b353b25a61c362c3ada9be06c8f15c9.tar.gz |
bus-message: output debug information about offset troubles
(cherry picked from commit 0b4775b52747bebf7ecb62062798475629767044)
Resolves: #1696224
-rw-r--r-- | src/libsystemd/sd-bus/bus-message.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libsystemd/sd-bus/bus-message.c b/src/libsystemd/sd-bus/bus-message.c index 153cdf933b..09e72d89dd 100644 --- a/src/libsystemd/sd-bus/bus-message.c +++ b/src/libsystemd/sd-bus/bus-message.c @@ -3845,8 +3845,11 @@ static int build_struct_offsets( x = size - (n_variable * sz); offset = m->rindex + x; - if (offset < start) + if (offset < start) { + log_debug("For type %s with alignment %zu, message specifies offset %zu which is smaller than previous end %zu + alignment = %zu", + t, align, offset, previous, start); return -EBADMSG; + } } else /* Fixed size */ offset = start + k; |