The client library fails to reject Will messages with payloads exceeding 65535 bytes when the `mosquitto will set()` or `mosquitto will set v5()` functions are called. This behavior leads to the transmission of up to 65535 bytes of uninitialised heap memory as the Will message.