chiark / gitweb /
sd-bus: don't look for a 64bit value when we only have 32bit value on reply cookie...
authorLennart Poettering <lennart@poettering.net>
Thu, 13 Mar 2014 19:33:22 +0000 (20:33 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 13 Mar 2014 19:33:22 +0000 (20:33 +0100)
commit42c4ebcbd4cbd7b27667eb8081ee4dc46f9ece17
tree7174ce9a588da96d6b7370a0c369f484c55ed939
parent82923adfe5c4fa09cc91fd2a2e374c936cd4a186
sd-bus: don't look for a 64bit value when we only have 32bit value on reply cookie hash table access

This broke hashtable lookups for the message cookies on s390x, which is
a 64bit BE machine where accessing 32bit values as 64bit and vice versa
will explode.

Also, while we are at it, be a bit more careful when dealing with the
64bit cookies we expose and the 32bit serial numbers dbus uses in its
payload.

Problem identified by Fridrich Strba.
src/libsystemd/sd-bus/bus-dump.c
src/libsystemd/sd-bus/bus-kernel.c
src/libsystemd/sd-bus/bus-message.c
src/libsystemd/sd-bus/bus-message.h
src/libsystemd/sd-bus/sd-bus.c