Skip to content

Improve memory helpers and add allocate_zeroed_memory + tests#443

Merged
rodrigogribeiro merged 4 commits into
argotorg:mainfrom
axic:memory-helpers
Jun 11, 2026
Merged

Improve memory helpers and add allocate_zeroed_memory + tests#443
rodrigogribeiro merged 4 commits into
argotorg:mainfrom
axic:memory-helpers

Conversation

@axic

@axic axic commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread std/std.solc
}

// Clears a memory area.
function zeroize_memory(ptr: word, len: word) -> () {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved here, better place for it.

axic and others added 4 commits June 9, 2026 23:07
Compares allocate_memory and allocate_zeroed_memory by dirtying the
free-memory slot beforehand and returning the resulting bytes blob.

Co-authored-by: Alex Beregszaszi <alex@rtfs.hu>
@axic axic force-pushed the memory-helpers branch from 56ae8e3 to c40ddb0 Compare June 9, 2026 21:08
Comment thread std/std.solc
uint256(*),
unimplemented
unimplemented,
zeroize_memory

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forgot to export in previous PR.

@rodrigogribeiro rodrigogribeiro left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@rodrigogribeiro rodrigogribeiro merged commit e531501 into argotorg:main Jun 11, 2026
4 checks passed
@axic axic deleted the memory-helpers branch June 11, 2026 12:47
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