We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 313606f commit afd9edcCopy full SHA for afd9edc
packets.go
@@ -188,9 +188,13 @@ func (mc *mysqlConn) readInitPacket() ([]byte, error) {
188
// return
189
//}
190
//return errMalformPkt
191
+ return cipher, nil
192
}
193
- return cipher, nil
194
+ // make a memory safe copy of the cipher slice
195
+ var b [8]byte
196
+ copy(b[:], cipher)
197
+ return b[:], nil
198
199
200
// Client Authentication Packet
0 commit comments