New warning: "‘subobj’ may be used uninitialized in this function" in Objects/bytes_methods.c
#102941
Labels
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
type-bug
An unexpected behavior, bug, or error
Uh oh!
There was an error while loading. Please reload this page.
Example:

This looks like a false-positive, because
subobj
is always initialized instringlib_parse_args_finds(function_name, args, &subobj, &start, &end)
:cpython/Objects/bytes_methods.c
Lines 770 to 786 in 87be8d9
Morever, it is used before in
PyTuple_Check(subobj)
.Any ideas on how to fix / silence it?
And why we get this warning only now? The code was not changed for 10 months.
Linked PRs
bytes_methods.c
#102942The text was updated successfully, but these errors were encountered: