Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

pycore_call.h:166:16: warning: ‘small_stack’ may be used uninitialized #132314

Copy link
Copy link
Open
@utkonos

Description

@utkonos
Issue body actions

Bug report

Bug description:

default: gcc -c -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall    -fno-semantic-interposition -flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none -g -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -fprofile-use -fprofile-correction -I./Include/internal -I./Include/internal/mimalloc  -I. -I./Include    -DPy_BUILD_CORE -o Python/perf_jit_trampoline.o Python/perf_jit_trampoline.c
    default: In file included from Python/bltinmodule.c:5:
    default: In function_PyObject_VectorcallTstate’,
    default:     inlined from_PyObject_VectorcallTstateat ./Include/internal/pycore_call.h:153:1,
    default:     inlined frommap_nextat Python/bltinmodule.c:1440:14:
    default: ./Include/internal/pycore_call.h:166:16: warning: ‘small_stackmay be used uninitialized [-Wmaybe-uninitialized]
    default:   166 |         return _PyObject_MakeTpCall(tstate, callable, args, nargs, kwnames);
    default:       |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    default: ./Include/internal/pycore_call.h: In functionmap_next’:
    default: ./Include/internal/pycore_call.h:107:23: note: by argument 3 of typestruct PyObject * const *to_PyObject_MakeTpCalldeclared here
    default:   107 | PyAPI_FUNC(PyObject*) _PyObject_MakeTpCall(
    default:       |                       ^~~~~~~~~~~~~~~~~~~~
    default: Python/bltinmodule.c:1412:15: note: ‘small_stackdeclared here
    default:  1412 |     PyObject *small_stack[_PY_FASTCALL_SMALL_STACK];
    default:       |               ^~~~~~~~~~~

CPython versions tested on:

3.13

Operating systems tested on:

Linux

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.