Messages with NUL character get truncated
Bug #1247559 reported by
Wolfgang Nagele
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mosquitto |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When sending in a message that contains \0 (NUL) anywhere in the payload it seems that the message is truncated at that very position and the rest of the payload is not delivered.
Here is an example:
We are sending in the message "test\0\0\0".
$ hexdump in
0000000 74 65 73 74 00 00 00
0000007
As expected the message has the four ASCII characters followed by three NUL control characters.
The message received is only "test".
$ hexdump out
0000000 74 65 73 74 0a
0000005
Ignore the 0a here as this is the newline that was added by mosquitto_sub which is fine.
Changed in mosquitto: | |
milestone: | none → 1.3 |
status: | New → Fix Committed |
Changed in mosquitto: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Could you clarify how you are sending the message, i.e. what client?