Skip to content
New issue

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

fix(string): the server will be crashed when passing a negative offset in SETRANGE command #2783

Merged
merged 3 commits into from
Feb 10, 2025

Conversation

git-hulk
Copy link
Member

Currently, we didn't check if the offset is a negative value and using it to index the value string will crash the server.

…t in SETRANGE command

Currently, we didn't check if the offset is a negative value and using
it to index the value string will crash the server.
torwig
torwig previously approved these changes Feb 10, 2025
@git-hulk git-hulk requested a review from PragmaTwice February 10, 2025 12:46
PragmaTwice
PragmaTwice previously approved these changes Feb 10, 2025
@git-hulk git-hulk dismissed stale reviews from PragmaTwice and torwig via 152579a February 10, 2025 13:28
src/cli/main.cc Outdated Show resolved Hide resolved
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
47 Security Hotspots

See analysis details on SonarQube Cloud

@git-hulk git-hulk merged commit 047490e into apache:unstable Feb 10, 2025
35 of 36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants