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
Two independent prepared-statement binary protocol problems remain on main:
Repeated COM_STMT_SEND_LONG_DATA chunks for the same parameter overwrite the previous chunk instead of appending to it.
COM_STMT_EXECUTE can panic on truncated packets because it reads the new parameter bound flag via data[pos] without a bounds check after consuming the null bitmap.
Expected Behavior
Repeated COM_STMT_SEND_LONG_DATA packets for the same parameter should append data, matching MySQL protocol semantics.
Truncated COM_STMT_EXECUTE packets should be rejected as malformed input instead of panicking.
Steps to Reproduce
1. Repeated COM_STMT_SEND_LONG_DATA overwrites instead of appending
Prepare a statement with one large text/blob parameter, then send two COM_STMT_SEND_LONG_DATA packets for the same parameter before COM_STMT_EXECUTE.
Expected final parameter value: concatenation of both chunks.
Actual value on main: only the last chunk is kept.
2. Truncated COM_STMT_EXECUTE can panic
Send a COM_STMT_EXECUTE payload that contains:
statement id
cursor flag
iteration count
complete null bitmap
no new parameter bound flag byte
Actual behavior on main: parser can panic when evaluating data[pos].
Expected behavior: return a malformed-packet error.
Activity