-
Notifications
You must be signed in to change notification settings - Fork 3k
Update mbed-coap to version 5.1.3 #12124
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
Update mbed-coap to version 5.1.3 #12124
Conversation
and IOTCLT-3749 CVE-2019-17212 - mbed-coap Buffer overflow
BTW is this the best place to send mbed-coap updates? Isn't there still a master repo elsewhere? |
@ristohuhtala, thank you for your changes. |
As first timer in this, did this wrong way. Will create new version from mbed-coap and update this PR |
I'll go and make some comments on the relevant PRs over in the mbed-coap repo. Some of it's just "style", but the changes have a couple of real issues. Would be good to address before taking an update. |
Change how uint16 overflow is detected
Updated mbed-coap changelog.md file. Also did changes requested to logic to detect overflow. Also updated PR title to be in similar format as in previous mbed-coap update PRs. |
@ristohuhtala thank you for the PR. Instead of putting something like 'Fix for IOTCLT-3748 CVE-2019-17211 - mbed-coap integer overflow' in the summary of changes , could you instead please provide a brief summary of what the actual issue is and then add how it was fixed? Also please split this into 2 separate PRs. There should be only one fix per PR (https://os.mbed.com/docs/mbed-os/v5.15/contributing/workflow.html#guidelines-for-github-pull-requests) . |
@adbridge Thanks for link. This was very first PR to mbed-os for me. Will put your link to my bookmarks. |
Talked with @yogpan01 , would good to push each error fix as separate version. Will close this and create new for new ones |
@ristohuhtala As this was an update from upstream repository, it was fine as it was (considering the upstream version was already updated). As the mbed-coap is in the different repository, changes should be applied there at first. An update to Mbed OS after. I'll review the split PRs now to get them in. |
Description
Fix for overflow errors
Summary of changes
Added check that returned int16 value wont overflow when creating new CoAP message
Changed buffer handling when CoAP message is parsed. Now every time before pointer value increased, buffer size is checked to avoid overflow.
Impact of changes
Migration actions required
Documentation
Pull request type
Test results
Reviewers
@anttiylitokola @yogpan01