Skip to content

GH-110819: fix maybe-uninitialized warnings on longobject.c #110821

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

FFY00
Copy link
Member

@FFY00 FFY00 commented Oct 13, 2023

Signed-off-by: Filipe Laíns <lains@riseup.net>
@@ -1935,6 +1935,7 @@ long_to_decimal_string_internal(PyObject *aa,
} while (0)

/* fill the string right-to-left */
assert (kind > 0);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This assert would seem to fail when just bytes_writer is passed into the function. It seems that this is the case where kind is uninitialized (the if-block at lines 1875-1896, particularly 1882-1887).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can fix that and land that PR first.

@FFY00
Copy link
Member Author

FFY00 commented Mar 11, 2024

Closed in favor of GH-116599.

@FFY00 FFY00 closed this Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants