Close Menu
    Trending
    • Early altseason signs emerge as altcoins begin to show bullish signs
    • XRP Whales Hold Most Tokens Since 2018 As Price Eyes $1.50
    • Senate Banking Committee Advances Clarity Act In 15-9 Vote
    • Hyperliquid (HYPE) Explodes by 20% in a Day but Red Flags Appear
    • Switzerland Goes On-Chain: HBAR Powers Biodiversity Plan
    • Solana (SOL) Buyers Stay Active, Though Resistance Keeps Pressure High
    • Bukele’s Futuristic BINAES Library Blends Books, Bitcoin, And Family Play In Revitalized Capital
    • Coinbase Becomes Official USDC Treasury Deployer on Hyperliquid
    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 Shows Signs Of Strength With Stronger Network Activity Supporting Growth

    May 14, 2026

    Analyst Says Ethereum Will Have Its Turn For An Explosive Rally, But Only When Bitcoin Does This

    May 13, 2026

    Ethereum Lands JPMorgan’s New Tokenized Money Market Fund

    May 13, 2026

    JPMorgan taps both Ethereum and Solana for separate reasons for its institutional cash stack

    May 13, 2026
    Add A Comment
    Leave A Reply Cancel Reply

    Top Posts

    Robinhood Announces $1.5Bn Share Buyback Amid 2026 Stock Struggles

    March 29, 2026

    CELR: Celer Announces cBridge Support for Redbelly

    August 1, 2025

    Best Mining Pools for 2024

    July 16, 2025

    Ethereum.org Translation Program: Milestones and Updates

    November 17, 2025

    ETH’s Negative Funding Rates May Not Be A Buy Signal This Time

    February 4, 2026
    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

    Ethereum Open Interest Declines Across Exchanges, Binance Stands Out — Details

    January 25, 2026

    SEC Approves Options Trading for VanEck Bitcoin ETF

    August 12, 2025

    Kaia (KAIA) Price Prediction 2025 2026 2027

    July 14, 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.