Skip to content

fix broken protocol regression from #10612#10639

Merged
oranagra merged 2 commits intoredis:unstablefrom
oranagra:fix_broken_protocol
Apr 25, 2022
Merged

fix broken protocol regression from #10612#10639
oranagra merged 2 commits intoredis:unstablefrom
oranagra:fix_broken_protocol

Conversation

@oranagra
Copy link
Member

@oranagra oranagra commented Apr 25, 2022

A change in #10612 introduced a regression.
when replying with garbage bytes to the caller, we must make sure it
doesn't include any newlines.

in the past it called rejectCommandFormat which did that trick.
but now it calls rejectCommandSds, which doesn't, so we need to make sure
to sanitize the sds.

when replying with garbage bytes to the caller, we must make sure it
doesn't include any newlines.
Copy link
Contributor

@madolson madolson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving to unblock in either case.

@oranagra oranagra merged commit 79ffc35 into redis:unstable Apr 25, 2022
@oranagra oranagra deleted the fix_broken_protocol branch April 25, 2022 21:34
enjoy-binbin pushed a commit to enjoy-binbin/redis that referenced this pull request Jul 31, 2023
A change in redis#10612 introduced a regression.
when replying with garbage bytes to the caller, we must make sure it
doesn't include any newlines.

in the past it called rejectCommandFormat which did that trick.
but now it calls rejectCommandSds, which doesn't, so we need to make sure
to sanitize the sds.
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.

2 participants