-
Notifications
You must be signed in to change notification settings - Fork 16
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
INTERNAL: Fix an overwrite issue for the big key #338
base: develop
Are you sure you want to change the base?
Conversation
e7b429e
to
5092df5
Compare
수정완료되었습니다.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
일부 리뷰
@namsic 리뷰 부탁합니다. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
리뷰 완료
rsize= keylen; | ||
} else { | ||
rsize= MEMCACHED_MAX_KEY - 1; | ||
memcached_set_error(*ptr, MEMCACHED_KEY_TOO_BIG, MEMCACHED_AT); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
추가로, 이렇게 설정된 MEMCACHED_KEY_TOO_BIG 오류가 나중에 활용 되나요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
활용되지 않으며, 로그를 남기기 위해 추가한 것이라 없어도 문제 없습니다. 제거할까요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
어떻게 하는 것이 좋은가요?
어떻게 해야 할지 모른다면, 현재는 그대로 두었다가 나중에 리뷰할 시에 살펴봐야 할 것 같습니다.
This comment was marked as outdated.
This comment was marked as outdated.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
리뷰 완료
result->item_key[result->key_length]= 0; | ||
|
||
if (key_length < MEMCACHED_MAX_KEY) key[key_length]= 0; | ||
else key[MEMCACHED_MAX_KEY - 1]= 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
질문이 있습니다.
result->item_key
에는 최대 (MEMCACHED_MAX_KEY -1) 길이의 문자열을 담지만,
result->key_length
는 MEMCACHED_MAX_KEY 이상일 수 있습니다.
result 구조체에 있는 item_key와 key_length 정보가 불일치하는 상태가 발생하며,
이로 인한 부작용은 없나요?
🔗 Related Issue
⌨️ What I did