◐ Shell
clean mode source ↗

bpo-30502: Fix handling of long oids by tiran · Pull Request #1852 · python/cpython

@mention-bot

@tiran

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

serhiy-storchaka

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

vstinner

PyErr_NoMemory();
goto fail;
}
buflen = OBJ_obj2txt(namebuf, buflen + 1, name, 0);

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

An alternate patch is provided as #2909.

@tiran

Closing in favor of #2909.