Repository navigation
v1.10.2 #1859
methane
announced in
Announcements
v1.10.2
#1859
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Changes since v1.10.1.
Security fixes
Return
ErrMalformPktinstead of panicking on truncated initial handshakepackets, including the greeting received before TLS negotiation.
(GHSA-9qjq-77h9-895w, Return ErrMalformPkt for truncated initial handshake packets #1850)
Discard connections after a failed
LOAD DATA LOCAL INFILE, including readerClose()errors, so unread results from a multi-statement batch cannot bereturned to a later caller. Preserve the server's response status and avoid
retrying the batch after an upload write failure. (GHSA-4v5x-9mc8-gr98)
Reject
interpolateParams=truecombined with an unsafe multibyte charset(
big5,sjis,gbk,cp932,gb18030) given bycharsetorCharset().Previously only
collationwas checked. Collations are now matchedcase-insensitively and by their charset prefix. The check also runs again
after a
BeforeConnectcallback has modified the config. Stop rejectinggb2312_bin; GB2312 trailing bytes cannot contain a backslash. The error textchanged from
invalid DSN: interpolateParams can not be used with unsafe collationsto
interpolateParams cannot be used with unsafe charsets, because it may alsobe returned by
NewConnectororConnector.ConnectafterBeforeConnect.Applications comparing the complete error string must update their comparison. (Harden interpolateParams against unsafe charsets and -- comments #1836)
Fix
interpolateParamsnot treating--followed by\v,\f, anothercontrol character, DEL, or a raw
0xA0byte as a comment. Other non-ASCIIbytes after
--remain outside the supported interpolation grammar. (Harden interpolateParams against unsafe charsets and -- comments #1836)Fix
interpolateParamstreating the*that opens/*/as closing thecomment. (Don't let the '*' that opens a block comment also close it #1835)
Bugfixes
Honor
BeforeConnectchanges to the timeout, dialer, logger, and connectionattributes without modifying the shared connector. (Improve Config handling #1809)
Validate prepared statement arguments and packet size before sending long
data, and reset the statement if a long-data write fails. (Defer prepared statement long data writes #1810)
Fix the reported precision of unsigned DECIMAL columns. (Fix precision of unsigned decimal columns #1813)
Preserve full two-byte column collation IDs so IDs above 255 do not cause
text columns to be reported as binary columns. (fix: preserve full column collation IDs #1818)
Fix the inverted check for collations outside the handshake's one-byte map.
Accept them when a charset is supplied, using
SET NAMES ... COLLATE;reject them when no charset is supplied instead of silently using the
default collation. (packets: fix inverted unknown collation check #1832)
Preserve and log idle server error packets before discarding a connection,
with bounded diagnostics over plain, TLS, and zlib connections. (conncheck: preserve and report idle server errors #1843)
This discussion was created from the release v1.10.2.
All reactions