Close Menu
    Trending
    • Bitcoin Price Crashes 6% To $84,000 In Sharp Sell-Off
    • Bitcoin Price Plunges to 6-Week Low as Liquidations Explode Amid Iran Strike Fears
    • OSL Group Raises $200M to Expand Stablecoin, Payments Business
    • Pundit Says XRP Price Is Not A ‘Crypto’ Question, But A Systemically Important Liquidity Asset
    • Ethereum Foundation is hiring an Executive Director
    • Why Is Crypto Down Today? Bitcoin Coils Below $88k As Market Waits For Q4 GDP Data
    • Is Bitcoin Repeating Its Darkest Bear Market History?
    • Tom Lee Says Crypto Not Keeping Up With Improving Fundamentals, Sees Precious Metals ‘Sucking the Oxygen’ out of the Room
    CryptoGate
    • Home
    • Bitcoin News
    • Cryptocurrency
    • Crypto Market Trends
    • Altcoins
    • Ethereum
    • Blockchain
    • en
      • en
      • fr
      • de
      • it
      • ja
    CryptoGate
    Home»Ethereum»Solidity optimizer bug | Ethereum Foundation Blog
    Ethereum

    Solidity optimizer bug | Ethereum Foundation Blog

    CryptoGateBy CryptoGateDecember 27, 2025No Comments3 Mins Read
    Share
    Facebook Twitter LinkedIn Pinterest Email


    A bug within the Solidity optimizer was reported by 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 habits 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 numerous circumstances should exist without delay for the bug to set off. Any mixture of circumstances that may set off the bug would persistently have the next two circumstances:

    1. The fixed wants to start out with 0xFF… and finish with a protracted 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 measurement fairly than gasoline.

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

    Evaluation

    This bug is current in all launched variations of Solidity from a minimum of way back to summer time 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 prevalence of such an invalidly generated routine. Notice, the truth that we now have not discovered a bug in all of the contract code doesn’t assure the absence of such occurrences.

    Enhancements

    With the intention to present higher transparency and elevated consciousness of bugs in Solidity, we now have 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 data together with different contract-related data.

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

    In regards to 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 might be a lot simpler to know and audit and it’ll change the present optimizer.



    Source link

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    CryptoGate
    • Website
    • Pinterest

    Related Posts

    Ethereum Foundation is hiring an Executive Director

    January 29, 2026

    Ethereum And Solana Are Flashing Caution Signals With Negative Buy/Sell Pressure Data – What This Means

    January 29, 2026

    Ethereum Holders Jump 3% In January, Clear 175 Mil Milestone

    January 29, 2026

    Ethereum Foundation Open Call re: Board Selection

    January 28, 2026
    Add A Comment
    Leave A Reply Cancel Reply

    Top Posts

    Something Big Is Coming — Investor Hints At XRP ETF Breakthrough This Week

    December 30, 2025

    Bitcoin Derivatives Pressure Hits 30-Day Extreme, Price Refuses To Break

    January 28, 2026

    ETH Continues to Outpace BTC Amid Biggest Bitcoin ETF Outflows in Months: Bitfinex Alpha

    August 26, 2025

    What’s Behind the Record-Breaking 270K BTC Movement This Year?

    October 25, 2025

    Identifying Profitable Investment Opportunities in Cryptocurrency Market

    August 21, 2025
    Categories
    • Altcoins
    • Bitcoin News
    • Blockchain
    • Crypto Market Trends
    • Crypto Mining
    • Cryptocurrency
    • Ethereum
    About us

    Welcome to cryptogate.info — your trusted gateway to the latest and most reliable news in the world of cryptocurrency. Whether you’re a seasoned trader, a blockchain enthusiast, or just curious about the future of digital finance, we’re here to keep you informed and ahead of the curve.

    At cryptogate.info, we are passionate about delivering timely, accurate, and insightful updates on everything crypto — from market trends, new coin launches, and regulatory developments to expert analysis and educational content. Our mission is to empower you with knowledge that helps you navigate the fast-paced and ever-evolving crypto landscape with confidence.

    Top Insights

    Crypto Traders Return to Memecoins, Trading Volume Jumps 106%

    January 20, 2026

    Whale Money Floods SHIB, PEPE & FLOKI: CEX Liquidity Exit?

    January 10, 2026

    Ticket launch details, on-chain raffle-auction, and programming tracks revealed

    September 30, 2025
    Categories
    • Altcoins
    • Bitcoin News
    • Blockchain
    • Crypto Market Trends
    • Crypto Mining
    • Cryptocurrency
    • Ethereum
    YouTube
    • Privacy Policy
    • Disclaimer
    • Terms and Conditions
    • Impressum
    • About us
    • Contact us
    Copyright © 2025 CryptoGate All Rights Reserved.

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