Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: low
Valid

Unsafely modifying the free memory pointer

Summary

Unsafely modifying the free memory pointer

Vulnerability Details

The code modifies the free memory pointer directly mstore(0x40, 0xbac65e5b). This is a low-level operation that can potentially interfere with Solidity's memory management, leading to unexpected behavior.

Impact

High.

Tools Used

Manual review.

Recommendations

If you are modifying the free-memory pointer, then consider setting it back to the original value of 0x80 at the end of the assembly code.

Updates

Lead Judging Commences

inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Validated
Assigned finding tags:

Wrong error storage

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.