Skip to content

gh-150372: add missing null check on completer_word_break_characters in readline.c#150251

Open
KowalskiThomas wants to merge 3 commits into
python:mainfrom
KowalskiThomas:kowalski/fix-missing-null-check-on-strdup
Open

gh-150372: add missing null check on completer_word_break_characters in readline.c#150251
KowalskiThomas wants to merge 3 commits into
python:mainfrom
KowalskiThomas:kowalski/fix-missing-null-check-on-strdup

Conversation

@KowalskiThomas
Copy link
Copy Markdown
Contributor

@KowalskiThomas KowalskiThomas commented May 22, 2026

What is this PR?

This adds a missing null pointer check on the result of an strdup call used to populate completer_word_break_characters. This matches what the remainder of the files does (so I assume this wasn't on purpose / being optimistic about strdup).

@KowalskiThomas KowalskiThomas changed the title fix: missing null check on strdup fix: missing null check on strdup May 22, 2026
@picnixz
Copy link
Copy Markdown
Member

picnixz commented May 23, 2026

Please create both an issue and a NEWS entry and update the PR title. It does not indicate what the change is about and is a poor commit message.

@KowalskiThomas KowalskiThomas changed the title fix: missing null check on strdup gh-150372: add missing null check on strdup May 25, 2026
@KowalskiThomas KowalskiThomas changed the title gh-150372: add missing null check on strdup gh-150372: add missing null check on completer_word_break_characters May 25, 2026
@KowalskiThomas KowalskiThomas marked this pull request as ready for review May 25, 2026 05:22
@KowalskiThomas KowalskiThomas changed the title gh-150372: add missing null check on completer_word_break_characters gh-150372: add missing null check on completer_word_break_characters in readline.c May 25, 2026
Comment thread Modules/readline.c
leandro4979-hub

This comment was marked as low quality.

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