Skip to content

Conversation

@tiran
Copy link
Member

@tiran tiran commented May 29, 2017

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

@mention-bot
Copy link

@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
Member Author

tiran commented May 29, 2017

Similar to pyca/cryptography#3612

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

@serhiy-storchaka serhiy-storchaka left a comment

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).

PyErr_NoMemory();
goto fail;
}
buflen = OBJ_obj2txt(namebuf, buflen + 1, name, 0);
Copy link
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
Member

An alternate patch is provided as #2909.

@tiran
Copy link
Member Author

tiran commented Sep 4, 2017

Closing in favor of #2909.

@tiran tiran closed this Sep 4, 2017
@tiran tiran deleted the longoid branch September 4, 2017 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-security A security issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants