Staging
v0.8.1
https://github.com/python/cpython
Revision 90115a2cf7033c990a54d1ecb90ebd850b5f13cf authored by Miss Islington (bot) on 10 November 2020, 14:20:52 UTC, committed by GitHub on 10 November 2020, 14:20:52 UTC

The overflow occurs under some circumstances when a task or future
recursively returns itself.

Co-authored-by: Kyle Stanley <aeros167@gmail.com>
(cherry picked from commit 42d873c63aa9d160c132be4a34599531574db12c)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
1 parent 2a86ade
Raw File
Tip revision: 90115a2cf7033c990a54d1ecb90ebd850b5f13cf authored by Miss Islington (bot) on 10 November 2020, 14:20:52 UTC
bpo-42183: Fix a stack overflow error for asyncio Task or Future repr() (GH-23020)
Tip revision: 90115a2
getversion.c

/* Return the full version string. */

#include "Python.h"

#include "patchlevel.h"

const char *
Py_GetVersion(void)
{
    static char version[250];
    PyOS_snprintf(version, sizeof(version), "%.80s (%.80s) %.80s",
                  PY_VERSION, Py_GetBuildInfo(), Py_GetCompiler());
    return version;
}
back to top