redis_version:6.0.3
Use Case 1:
No arguments given for STRALGO LCS STRINGS command.
➜ ~ redis-cli
127.0.0.1:6379> STRALGO LCS STRINGS
Could not connect to Redis at 127.0.0.1:6379: Connection refused
not connected>
Use Case 2:
Only one string argument provided for STRALGO LCS STRINGS command.
➜ ~ redis-cli
127.0.0.1:6379> STRALGO LCS STRINGS ohmytext
Could not connect to Redis at 127.0.0.1:6379: Connection refused
not connected>
Both these scenarios lead to lost redis connection from command line
Comment From: hwware
Hello,thank you for reporting this issue, I confirmed I can reproduced this server crash in my local environment, I will work on a fix shortly..
Comment From: hwware
@vineetbhatkoti Hello, the reason of this server crash is because in Redis core, we forgot to do the sanity check for the STRINGS params length, I just opened a PR to fix it, however, the way you are using this command is also wrong, after the STRINGS you should follow two strings as params for calculating the longest common subsqence. Please check this documentation for more details,https://redis.io/commands/stralgo thanks.