Skip to content
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

scripts: menuconfig: proper handling of NULL character as input #33347

Merged

Conversation

tejlmand
Copy link
Collaborator

@tejlmand tejlmand commented Mar 15, 2021

Fixes: #33212

Upstream PR: ulfalizer/Kconfiglib#103

Ignoring when user inputs NULL in a text field.
menuconfig exits with a python stack trace if NULL is provided as input
character, therefore ignore NULL as an input character to prevent this
behaviour.

A NULL character may be given accidentally by the user through the
following ways:

  • Pressing Win key on keyboard (Windows only)
  • Pressing <CTRL>-@ / <CTRL>-2.

Signed-off-by: Torsten Rasmussen [email protected]

@carlescufi
Copy link
Member

Can you send this upstream as well?

@mbolivar-nordic
Copy link
Contributor

Can you send this upstream as well?

Agree, I would like to have a PR in upstream kconfiglib and a reference to that PR in the commit message for this Zephyr PR before merging.

@tejlmand
Copy link
Collaborator Author

Can you send this upstream as well?

Agree, I would like to have a PR in upstream kconfiglib and a reference to that PR in the commit message for this Zephyr PR before merging.

Done:
ulfalizer/Kconfiglib#103

Fixes: zephyrproject-rtos#33212

Upstream PR: ulfalizer/Kconfiglib#103

Ignoring when user inputs NULL in a text field.
menuconfig exits with a python stack trace if NULL is provided as input
character, therefore ignore NULL as an input character to prevent this
behaviour.

A NULL character may be given accidentally by the user through the
following ways:
- Pressing `Win` key on keyboard (Windows only)
- Pressing `<CTRL>-@` / `<CTRL>-2`.

Signed-off-by: Torsten Rasmussen <[email protected]>
@tejlmand tejlmand force-pushed the issues/33212_fix_nul_char branch from ffbe9a9 to d516838 Compare March 15, 2021 16:08
@mbolivar-nordic
Copy link
Contributor

Thanks, LGTM now!

@carlescufi carlescufi merged commit d33fc38 into zephyrproject-rtos:master Apr 7, 2021
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.

GUI configuration system (ninja menuconfig) exists with an error when the windows key is pressed
3 participants