Skip to content

Fix/index meta attachment bounds check - #899

Closed
ilike314272 wants to merge 5 commits into
alibaba:mainfrom
ilike314272:fix/index-meta-attachment-bounds-check
Closed

ilike314272 wants to merge 5 commits into
alibaba:mainfrom
ilike314272:fix/index-meta-attachment-bounds-check

Conversation

@ilike314272

Copy link
Copy Markdown
Contributor

IndexMeta::deserialize() in src/core/framework/index_meta.cc adds attachment_offset and attachment_size, both 32-bit, which can overflow, and be less than len, unsigned 64-bit, passing the check. The string thus can start at an out-of-bounds pointer.

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