Websocket - Send a text message with payload "0x00"
Submitted by Italo Guerrieri
Assigned to libsoup-maint@gnome.bugs
Link to original bug (#794110)
Description
Libsoup is not able to parse text message that contains as a payload the "0x00" string, which instead should be a valid utf8 string.
This is caused by the g_utf8_validate() (https://developer.gnome.org/glib/stable/glib-Unicode-Manipulation.html#g-utf8-validate) function that returns FALSE if max_len is positive and any of the max_len bytes are null.
This issue has been found by Autobahn's test case 6.7.1 (https://github.com/crossbario/autobahn-testsuite)