From: Zbigniew Jędrzejewski-Szmek Date: Fri, 3 Aug 2018 16:05:27 +0000 (+0200) Subject: bus-message: output debug information about offset troubles X-Git-Tag: v240~650^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0b4775b52747bebf7ecb62062798475629767044;p=platform%2Fupstream%2Fsystemd.git bus-message: output debug information about offset troubles --- diff --git a/src/libsystemd/sd-bus/bus-message.c b/src/libsystemd/sd-bus/bus-message.c index eee8e39..7fb48cb 100644 --- a/src/libsystemd/sd-bus/bus-message.c +++ b/src/libsystemd/sd-bus/bus-message.c @@ -3820,8 +3820,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;