-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
[Coverity CID :203443]Memory - corruptions in /subsys/bluetooth/host/rfcomm.c #18386
Comments
There are several things that look messed up with this code. I don't have time to go digging through the RFCOMM spec to figure out what exactly is the right thing. Maybe this is the final straw and we should just remove BR/EDR support from the tree. Downgrading to low priority however since this is considered experimental code. |
@aasthagr Could you possibly check if this issue has been resolved with the fix that was recently submitted to RFCOMM? |
Answering my own question. No it does not. |
this is marked fixed in coverity with comment "Source code is not available because it has been purged." |
This is intentional, rfcomm has a variable length length field, which is confusing when we cast the uint8_t field to an uint16_t field instead, but the extra byte has been pushed to the net_buf. @jhedberg I think it would be slighly more correct to make the rfcomm header exclude the length field, and then either push or pull uint8_t or uint16_t from net_buf instead, do you think it is worth it to change it like this? |
This issue has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 14 days. Note, that you can always re-open a closed issue at any time. |
@MaureenHelm assigning this to you since @MarkWangChinese is not yet part of the org, and this is BR/EDR with which you've shown an interest in keeping alive. |
@MarkWangChinese can you take a look this week? |
I created one PR #35706 |
Static code scan issues seen in File: /subsys/bluetooth/host/rfcomm.c
Category: Memory - corruptions
Function: bt_rfcomm_dlc_send
Component: Bluetooth
CID: 203443
Please fix or provide comments to square it off in coverity in the link:
https://scan9.coverity.com/reports.htm#v32951/p12996https://scan9.coverity.com/reports.htm#v34747/p12996/
The text was updated successfully, but these errors were encountered: