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

serial: uart_async_rx: Avoid possible division by zero #75905

Merged
merged 1 commit into from
Jul 27, 2024

Conversation

ceolin
Copy link
Member

@ceolin ceolin commented Jul 15, 2024

Ensures that config->but_cnt is not zero.

Fixes #66800
CID #338107

Ensures that config->but_cnt is not zero.

Fixes zephyrproject-rtos#66800
CID #338107

Signed-off-by: Flavio Ceolin <[email protected]>
@ceolin ceolin added the bug The issue is a bug, or the PR is fixing a bug label Jul 15, 2024
@zephyrbot zephyrbot added area: UART Universal Asynchronous Receiver-Transmitter size: XS A PR changing only a single line of code labels Jul 15, 2024
@zephyrbot zephyrbot requested a review from dcpleung July 15, 2024 19:56
@dcpleung dcpleung added the Trivial Changes that can be reviewed by anyone, i.e. doc changes, minor build system tweaks, etc. label Jul 15, 2024
@dcpleung dcpleung added this to the v3.7.0 milestone Jul 15, 2024
@nashif nashif added the backport v3.7-branch Request backport to the v3.7-branch label Jul 16, 2024
@aescolar aescolar removed this from the v3.7.0 milestone Jul 16, 2024
@nashif nashif added this to the v4.0.0 milestone Jul 17, 2024
@nashif nashif merged commit 5822267 into zephyrproject-rtos:main Jul 27, 2024
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: UART Universal Asynchronous Receiver-Transmitter backport v3.7-branch Request backport to the v3.7-branch bug The issue is a bug, or the PR is fixing a bug size: XS A PR changing only a single line of code Trivial Changes that can be reviewed by anyone, i.e. doc changes, minor build system tweaks, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Coverity CID: 338107] Division or modulo by zero in subsys/shell/backends/shell_uart.c
6 participants