Skip to content

sysdeps: Implement _DBUS_DOUBLES_BITWISE_EQUAL with memcmp

Simon McVittie requested to merge smcv/dbus:memcmp into master

memcmp is the Standard C way to compare arbitrary regions of memory bit-by-bit, so let's use it, instead of reinventing it in a way that violates Standard C aliasing rules.


Inspired by part of !192 (merged), in which @rhabacker found various strict-aliasing violations by compiling with a stricter compiler.

Merge request reports