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

avoid possible memcpy with nullptr when action data size is 0 #1649

Merged
merged 2 commits into from
Sep 18, 2023

Conversation

spoonincode
Copy link
Member

When action data size is 0, it was possible for a memcpy call to contain a source pointer of nullptr and length of 0. This is not defined behavior, but a careful analysis of leap's supported platforms and prior builds shows no evidence this could be a source of indeterminism so this change is not being treated as a security fix.

libraries/chain/webassembly/action.cpp Outdated Show resolved Hide resolved
Co-authored-by: Gregory Popovitch <greg7mdp@gmail.com>
@spoonincode spoonincode merged commit 7be27dc into main Sep 18, 2023
@spoonincode spoonincode deleted the no_nullptr_memcpy_getactiondata branch September 18, 2023 21:36
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.

3 participants