You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm using Mariaex to connect to Sphinx Search, which implements the MySQL 4.1 protocol. For the auth_plugin_data2 field of the initial handshake, Sphinx sends a non-NUL terminated string (string.fixlen, as specified here). This causes a pattern match in line 94 of messages.ex:
Since we are looking for a NUL terminated string. I see there's a comment there that indicates we want to pull max(13, length_auth_plugin_data - 8) bytes - so maybe you've considered this and then thought better of it. In any case, it looks like we need another pattern match in Mariaex.Coder.match to fully meet the MySQL spec.
The text was updated successfully, but these errors were encountered:
Hi, I'm using Mariaex to connect to Sphinx Search, which implements the MySQL 4.1 protocol. For the
auth_plugin_data2
field of the initial handshake, Sphinx sends a non-NUL terminated string (string.fixlen
, as specified here). This causes a pattern match in line 94 ofmessages.ex
:Since we are looking for a NUL terminated string. I see there's a comment there that indicates we want to pull
max(13, length_auth_plugin_data - 8)
bytes - so maybe you've considered this and then thought better of it. In any case, it looks like we need another pattern match inMariaex.Coder.match
to fully meet the MySQL spec.The text was updated successfully, but these errors were encountered: