Skip to content

OID truncation in getExtOid due to insufficient buffer size#2631

Open
metsw24-max wants to merge 1 commit into
facebook:mainfrom
metsw24-max:getExtOid-buffer-truncation
Open

OID truncation in getExtOid due to insufficient buffer size#2631
metsw24-max wants to merge 1 commit into
facebook:mainfrom
metsw24-max:getExtOid-buffer-truncation

Conversation

@metsw24-max
Copy link
Copy Markdown
Contributor

getExtOid resizes the buffer to length when OBJ_obj2txt requires more space, but the returned length does not include the null terminator.
This makes the buffer one byte too small and causes the last character of long OIDs to be truncated. Update the condition to length >= buf_size and resize to length + 1 to return the full OID correctly

@meta-cla meta-cla Bot added the CLA Signed label Apr 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant