Close Menu
    Trending
    • AI Models Predict Ethereum Cycle Top At $15,000: Analyst
    • The Subjectivity / Exploitability Tradeoff
    • Total Crypto Market Cap Hits New All-Time High as Ethereum Flips MasterCard 
    • Bitcoin Nears $120,000 Again As El Salvador Opens Bitcoin Banks, Japan ETF Stalls
    • Gav’s Ethereum ÐΞV Update V
    • J.P. Morgan Taps Marex as Clearing Firm for Settlements on its Blockchain
    • Ethereum Price Eyeing A Breakout? On-Chain Analysis Places Short-Term Target At $4,800
    • The Ethereum Launch Process | Ethereum Foundation Blog
    Facebook X (Twitter) Instagram YouTube
    Finance Insider Today
    • Home
    • Cryptocurrency
    • Bitcoin
    • Ethereum
    • Altcoins
    • Market Trends
    • More
      • Blockchain
      • Mining
    • Sponsored
    Finance Insider Today
    Home»Ethereum»Solidity optimizer bug | Ethereum Foundation Blog
    Ethereum

    Solidity optimizer bug | Ethereum Foundation Blog

    Finance Insider TodayBy Finance Insider TodayJune 30, 2025No Comments3 Mins Read
    Share
    Facebook Twitter LinkedIn Pinterest Email


    A bug within the Solidity optimizer was reported by way of the Ethereum Foundation Bounty program, by Christoph Jentzsch. This bug is patched as of 2017-05-03, with the discharge of Solidity 0.4.11.

    Background

    The bug in query involved how the optimizer optimizes on constants within the byte code. By “byte code constants”, we imply something which is PUSHed on the stack (to not be confused with Solidity constants). For instance, if the worth 0xfffffffffffffffffffffffffffffffffffffffffffffffe is PUSHed, then the optimizer can both do PUSH32 0xfffffffffffffffffffffffffffffffffffffffffffffffe, or select to encode this as PUSH1 1; NOT;.

    An error within the optimizer made optimizations of byte code constants fail for sure instances by producing a routine that didn’t correctly recreate the unique fixed.

    The conduct described within the reported bug was present in a contract during which one technique ceased functioning when one other – completely unrelated – technique was added to the contract. After evaluation, it was decided that a lot of circumstances should exist without delay for the bug to set off. Any mixture of circumstances that may set off the bug would constantly have the next two circumstances:

    1. The fixed wants to start out with 0xFF… and finish with an extended collection of zeroes (or vice versa).
    2. The identical fixed must be utilized in a number of areas, for the optimizer to decide on to optimize this specific fixed. Alternatively, it must be used within the constructor, which optimises for dimension quite than fuel.

    Along with the 2 circumstances above, there are additional, extra difficult circumstances which can be required.

    Evaluation

    This bug is current in all launched variations of Solidity from not less than way back to summer season 2015 to the current. Though the bug has been current since 2015, it appears very laborious to set off by “random” code:

    We carried out a static evaluation of all contract code deployed on the blockchain, and located no incidence of such an invalidly generated routine. Observe, the truth that we have now not discovered a bug in all of the contract code doesn’t assure the absence of such occurrences.

    Enhancements

    To be able to present higher transparency and elevated consciousness of bugs in Solidity, we have now began exporting details about Solidity-related vulnerabilities as JSON-files within the Solidity code repository(1,2). We hope that block explorers will combine this info together with different contract-related info.

    Etherscan has already applied this, which may be seen here and here.

    Regarding the bug itself, we added a mini-EVM to the optimizer which verifies the correctness of every generated routine at compile time.

    Moreover, work has already began on a fully-specified and extra high-level intermediate language. Future optimizer routines on this language can be a lot simpler to know and audit and it’ll exchange the present optimizer.



    Source link

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Finance Insider Today
    • Website

    Related Posts

    The Subjectivity / Exploitability Tradeoff

    August 11, 2025

    Gav’s Ethereum ÐΞV Update V

    August 11, 2025

    The Ethereum Launch Process | Ethereum Foundation Blog

    August 11, 2025

    The Ethereum Development Process | Ethereum Foundation Blog

    August 10, 2025
    Add A Comment
    Leave A Reply Cancel Reply

    Top Posts

    Vitalik Buterin proposes to cap gas usage per Ethereum transaction to boost zkVM compatibility, security

    July 6, 2025

    Devcon VI Recap, Resources & Wrap-Up!

    May 12, 2025

    Analyst Predicts Multiple Weeks of Bullish Price Action for Altcoins, Says Trend Switch for Ethereum Is Clear

    May 12, 2025

    Will America Become The Bitcoin And Crypto Capital Of The World? Here’s An Expert’s Take.

    August 8, 2025

    Surprising Link Between XRP And Crude Oil Revealed By Analyst

    May 16, 2025
    Categories
    • Altcoins
    • Bitcoin
    • Blockchain
    • Cryptocurrency
    • Ethereum
    • Market Trends
    • Mining
    About us

    Welcome to Finance Insider Today – your go-to source for the latest Crypto News, Market Trends, and Blockchain Insights.

    At FinanceInsiderToday.com, we’re passionate about helping our readers stay informed in the fast-moving world of cryptocurrency. Whether you're a seasoned investor, a crypto enthusiast, or just getting started in the digital finance space, we bring you the most relevant and timely news to keep you ahead of the curve.
    We cover everything from Bitcoin and Ethereum to DeFi, NFTs, altcoins, regulations, and the evolving landscape of Web3. With a global perspective and a focus on clarity, Finance Insider Today is your trusted companion in navigating the future of digital finance.

    Thanks for joining us on this journey. Stay tuned, stay informed, and stay ahead.

    Top Insights

    AI Models Predict Ethereum Cycle Top At $15,000: Analyst

    August 11, 2025

    The Subjectivity / Exploitability Tradeoff

    August 11, 2025

    Total Crypto Market Cap Hits New All-Time High as Ethereum Flips MasterCard 

    August 11, 2025
    Categories
    • Altcoins
    • Bitcoin
    • Blockchain
    • Cryptocurrency
    • Ethereum
    • Market Trends
    • Mining
    Facebook X (Twitter) Instagram YouTube
    • Privacy Policy
    • Disclaimer
    • Terms and Conditions
    • About us
    • Contact us
    Copyright © 2025 Financeinsidertoday.com All Rights Reserved.

    Type above and press Enter to search. Press Esc to cancel.