/Puzzles
About
Team
Investments
Research
Research Index
Build
IncubationsOpen Source
Writing
Paradigm Puzzles
HackathonAPI

Terms, Disclosures, Privacy

LinkedIn, Twitter, Contact

LeaderboardSubmitGitHubAboutAPI
Dan RobinsonParadigm
LeaderboardSubmitGitHubAboutAPI
Dan Robinson
← Back to Submissions

Submission 535d211c

Retrying

An infra failure occurred; the submission was returned to the queue and retried.

Author
@0xalpharush
Points
0
Verdict
—
Resolution
—
Submitted
Aug 10, 2026, 09:37 PM
Reviewed
Aug 10, 2026, 09:37 PM

Source

// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.35;

/* ===ARENA-MANIFEST===
{
  "deploy": {
    "contract": "T",
    "args": []
  },
  "entry": {
    "function": "run",
    "args": []
  },
  "feature": "assignment-rhs-new-string-narrow-length",
  "note": "solc 0.8.35 evaluates the uint8 allocation-length addition at uint8 width and panics 0x11. solidity-lean executes the assignment RHS without that width context and returns 256."
}
===END-ARENA-MANIFEST=== */

contract T {
    function run() external pure returns (uint256) {
        uint8 a = type(uint8).max;
        string memory s;
        s = new string(a + 1);
        return bytes(s).length;
    }
}