Skip to content

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

Closed
FFY00 wants to merge 2 commits into
python:mainfrom
FFY00:gh-110819
Closed

GH-110819: fix maybe-uninitialized warnings on longobject.c#110821
FFY00 wants to merge 2 commits into
python:mainfrom
FFY00:gh-110819

Conversation

@FFY00

@FFY00 FFY00 commented Oct 13, 2023

Copy link
Copy Markdown
Member

Signed-off-by: Filipe Laíns <lains@riseup.net>
Comment thread Objects/longobject.c
} while (0)

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

Copy link
Copy Markdown
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
Copy Markdown
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

FFY00 commented Mar 11, 2024

Copy link
Copy Markdown
Member Author

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