Skip to content
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

malloc memory request size is updated (IDFGH-1490) #3757

Closed
wants to merge 1 commit into from

Conversation

rmshub
Copy link
Contributor

@rmshub rmshub commented Jul 10, 2019

sizeof(CAP_SIG_NUM) will return only 4 bytes. However, we need 34 = 12 for three signals capture. So, CAP_SIG_NUMsizeof(uint32_t) is valid for memory allocation. Otherwise, it will access out-of boundary memory.

sizeof(CAP_SIG_NUM) will return only 4 bytes. However, we need 3*4 = 12 for three signals capture. So, CAP_SIG_NUM*sizeof(CAP_SIG_NUM) is valid for memory allocation. Otherwise, it will access out-of boundary memory.
@CLAassistant
Copy link

CLAassistant commented Jul 10, 2019

CLA assistant check
All committers have signed the CLA.

@github-actions github-actions bot changed the title malloc memory request size is updated malloc memory request size is updated (IDFGH-1490) Jul 10, 2019
@koobest
Copy link
Contributor

koobest commented Jul 11, 2019

Thanks for your PR . We will fix this bug soon :-)

igrr pushed a commit that referenced this pull request Jul 16, 2019
boarchuz pushed a commit to boarchuz/esp-idf that referenced this pull request Jul 17, 2019
trombik pushed a commit to trombik/esp-idf that referenced this pull request Aug 9, 2019
@Alvin1Zhang
Copy link
Collaborator

@rmshub Thanks for the contribution. This PR has already been merged, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants