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 arena cleared early when parse redis message #1959

Merged
merged 1 commit into from
Oct 24, 2022

Conversation

dorothy00dd2
Copy link

当 RedisCommandParser::Consume 返回 PARSE_ERROR_NOT_ENOUGH_DATA 时,已经 parse 过的数据可能被 ctx->arena.clear() 掉,下次继续parse时,解析过的 _args 内存已经被释放了。

@wwbmmm
Copy link
Contributor

wwbmmm commented Oct 20, 2022

LGTM

src/brpc/redis_command.h Outdated Show resolved Hide resolved
@lorinlee lorinlee merged commit 5d89893 into apache:master Oct 24, 2022
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