-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
drivers: serial: fix potential overflow in fifo_fill and fifo_read #80601
Conversation
Hello @ken4647, and thank you very much for your first pull request to the Zephyr project! |
The patch looks fine but the your commit message doesn't meet our contribution guideline and the CI is going to fail, please take a look at https://docs.zephyrproject.org/latest/contribute/guidelines.html#commit-message-guidelines Basically, you need something like this
I guess you can change the title to be |
Thanks, I didn't notice the length. I have re-push my commit with new legal commit message. |
@ken4647 you still need an actual body to the commit message. You could just put the PR description there. In addition to that you also need a Signed-off-by line ( |
Sorry, I noticed it yet. I will read the guideline seriously to avoid the mistake. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For STM32, some other functions are also impacted by this change and should be updated.
Note that I only reviewed the STM32 driver.
aaa6548
to
cfc353a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM for STM32
Change the type of num_tx/num_rx to avoid overflow. Fixes zephyrproject-rtos#80599 Signed-off-by: Zheng Wu <[email protected]>
The latest push is to eliminate the notices from CI for meeting the clang-format. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM for renesas_ra_sci.
@duynguyenxa |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM for drivers/serial/uart_renesas_ra8_sci_b.c.
@dcpleung , can you help review |
Hi @ken4647! To celebrate this milestone and showcase your contribution, we'd love to award you the Zephyr Technical Contributor badge. If you're interested, please claim your badge by filling out this form: Claim Your Zephyr Badge. Thank you for your valuable input, and we look forward to seeing more of your contributions in the future! 🪁 |
try to fix issue #80599 , a error of type transform(?) in serial drivers. For
fifo_read
it may cause wrong read data if parametersize
is over 255, while endless looping forfifo_fill
, if uart is running faster than cpu.Fixes #80599