We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sqle@latest
使用特定SQL生成指纹时,由于生成的指纹长度大于原有SQL,FingerPrint算法访问的数组越界,产生panic 类似问题:percona/go-mysql#30
func TestName(t *testing.T) { fp := query.Fingerprint(`insert into tb values(1)`) fmt.Println("11", fp) } // 这条SQL虽然是错误的,但也可以触发panic :SELECT*FROM (SELECT * FROM tb values(1));
github.com/percona/go-mysql/query的指纹生成函数缺陷
使用github.com/actiontech/sqle/sqle/driver/mysql/util中的指纹函数替换github.com/percona/go-mysql/query
涉及替换的地方:
The text was updated successfully, but these errors were encountered:
纯后台修改,通过代码验证
Sorry, something went wrong.
BugsGuru
No branches or pull requests
版本信息(Version)
sqle@latest
问题描述(Describe)
使用特定SQL生成指纹时,由于生成的指纹长度大于原有SQL,FingerPrint算法访问的数组越界,产生panic
类似问题:percona/go-mysql#30
截图或日志(Log)
临时修复方案
如何复现(To Reproduce)
问题原因
github.com/percona/go-mysql/query的指纹生成函数缺陷
解决方案
使用github.com/actiontech/sqle/sqle/driver/mysql/util中的指纹函数替换github.com/percona/go-mysql/query
涉及替换的地方:
变更影响面
受影响的模块或功能
外部引用的潜在问题或风险
版本兼容性
测试建议
The text was updated successfully, but these errors were encountered: