Skip to content

Commit

Permalink
Merge pull request #55 from hengyoush/fix/issue-53
Browse files Browse the repository at this point in the history
[Fix] fix issue #53
  • Loading branch information
hengyoush authored Oct 1, 2024
2 parents 798cd4f + 7ad41d6 commit f504bf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agent/protocol/mysql/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ func processLengthEncodedInt(s string, offset *int) (int64, bool) {

func DissectStringParam(s string, offset *int, param *string) bool {
param_length, ok := processLengthEncodedInt(s, offset)
if !ok {
if !ok || len(s) < *offset+int(param_length) {
return false
}
*param = s[*offset : *offset+int(param_length)]
Expand Down

0 comments on commit f504bf6

Please sign in to comment.