https://github.com/python/cpython
Raw File
Tip revision: 266bb035b48a2e75954db99ea47ad4dd9568c59e authored by Gregory P. Smith on 13 November 2018, 21:16:54 UTC
bpo-35214: Fix OOB memory access in unicode escape parser (GH-10506)
Tip revision: 266bb03
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