Skip to content

bpo-30502: Fix handling of long oids - #1852

Closed
tiran wants to merge 1 commit into
python:masterfrom
tiran:longoid
Closed

bpo-30502: Fix handling of long oids#1852
tiran wants to merge 1 commit into
python:masterfrom
tiran:longoid

Conversation

@tiran

Copy link
Copy Markdown
Member

Signed-off-by: Christian Heimes christian@python.org

@mention-bot

Copy link
Copy Markdown

@tiran, thanks for your PR! By analyzing the history of the files in this pull request, we identified @serhiy-storchaka, @benjaminp, @malemburg and @tiran to be potential reviewers.

@tiran

Copy link
Copy Markdown
MemberAuthor

Similar to pyca/cryptography#3612

Signed-off-by: Christian Heimes <christian@python.org>

@serhiy-storchakaserhiy-storchaka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, but I suggest the patch that don't duplicate the code (see on the tracker).

Comment threadModules/_ssl.c
PyErr_NoMemory();
goto fail;
}
buflen = OBJ_obj2txt(namebuf, buflen + 1, name, 0);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do we need that the new buflen is equal to the previous buflen?

@serhiy-storchaka

Copy link
Copy Markdown
Member

An alternate patch is provided as #2909.

@tiran

tiran commented Sep 4, 2017

Copy link
Copy Markdown
MemberAuthor

Closing in favor of #2909.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-securityA security issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@tiran@mention-bot@serhiy-storchaka@vstinner@brettcannon@Mariatta@the-knights-who-say-ni