database/gredis: When using the ScriptExists method, if Redis crashes or the connection is down, there will be an index out of range issue that causes the program to crash. #3646
Labels
bug
It is confirmed a bug, but don't worry, we'll handle it.
Go version
go version go1.22.1 linux/amd64
GoFrame version
v2.7.1
Can this bug be reproduced with the latest release?
Option Yes
What did you do?
main.go
What did you see happen?
During the execution of the above code, if a Redis outage occurs or the Redis connection is unavailable, an index out of range error will occur, causing the service to crash.
What did you expect to see?
Upon debug, it was found that the ScriptExists method under the database/gredis package does not check for null values and index bounds before using the returned values.
Pls fix it. Tks!
The text was updated successfully, but these errors were encountered: