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

Fix private underflow #1470

Merged
merged 7 commits into from
Jun 6, 2019

Conversation

charles-cooper
Copy link
Member

What I did

Fix #1463

How I did it

The dynamic section copier skipped null elements in case there was a difference between len(array) and maxlen(array) since elements past-the-end of memory are null. However, that could fail if the array length was nonzero but it had null elements. This fixes the dynamic section copier by explicitly using the length specified in the ABI encoding for byte arrays.

How to verify it

Description for the changelog

Cute Animal Picture

Put a link to a cute animal picture inside the parenthesis-->

@jacqueswww
Copy link
Contributor

jacqueswww commented Jun 5, 2019

Appropriate 'cute' image, figuring this out was a challenge indeed! 👅

@jacqueswww
Copy link
Contributor

Great stuff!

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.

Fails: Using empty bytes[256] default function parameter on internal constant and private functions
2 participants