Skip to content

Fix for reallocation memory fail in TMPM46B #10048

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

Merged
merged 1 commit into from Mar 15, 2019
Merged

Fix for reallocation memory fail in TMPM46B #10048

merged 1 commit into from Mar 15, 2019

Conversation

ghost
Copy link

@ghost ghost commented Mar 12, 2019

Description

'gI2C_LTxData' is reallocated but the return value is not checked. If this fails it could lead to writing in uninitialized memory. Hence error check added if reallocation fails.

Pull request type

[x] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change

Reviewers

@janjongboom

Reference

PR #9987

@ciarmcom
Copy link
Member

@ganesh-ramachandran, thank you for your changes.
@soramame21 @janjongboom @ARMmbed/mbed-os-maintainers please review.

@janjongboom
Copy link
Contributor

I just found the issue, I don't feel comfortable reviewing HAL code.

@soramame21
Copy link
Contributor

the fix is fine.

@0xc0170
Copy link
Contributor

0xc0170 commented Mar 14, 2019

No more changes are expected there.

This was added to the rollup PR #10097 and it's currently in CI. If any new commit comes, please let us know immediately.

@0xc0170 0xc0170 merged commit c5ad72b into ARMmbed:master Mar 15, 2019
@0xc0170 0xc0170 removed the needs: CI label Mar 15, 2019
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.

4 participants