Skip to content

STM32: HAL smartcard, fix memory corruption in Receive #5505

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
Nov 16, 2017

Conversation

LMESTM
Copy link
Contributor

@LMESTM LMESTM commented Nov 15, 2017

This is a follow-up of PR #5303. In order to avoid losing that was proposed in #5303 but that could not be merged as it is we are proposing this new PR. We are taking only the fix part, and leaving behind application related changes.

Proposal: close #5303 and use this PR instead.

Description of fix

Re-casting with tmp the uint8_t* pData pointer to uint16_t* brings a
memory corruption and typically can corrupt the size parameter. This
is fixed with this commit.

STM32 Internal ticket reference : 39116

Re-casting with tmp the uint8_t* pData pointer to uint16_t* brings a
memory corruption and typically can corrupt the size parameter. This
is fixed with this commit.

STM32 Internal ticket reference : 39116
@0xc0170
Copy link
Contributor

0xc0170 commented Nov 15, 2017

/morph build

@mbed-ci
Copy link

mbed-ci commented Nov 15, 2017

Build : SUCCESS

Build number : 523
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/5505/

Triggering tests

/morph test
/morph uvisor-test
/morph export-build

@mbed-ci
Copy link

mbed-ci commented Nov 15, 2017

@mbed-ci
Copy link

mbed-ci commented Nov 15, 2017

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.

3 participants