Close Menu
    Trending
    • Bitcoin liquidity pattern signals ‘pivotal moment’ with $124K BTC target
    • Why Are The Bitcoin, Ethereum, And Dogecoin Prices Down Again?
    • Bitcoin Price Crashes To $94,000, New Six-Month Lows
    • Coinbase Ventures-Backed Supra Offers $1M Bounty to Beat Its Parallel EVM Execution Engine
    • What Will Trigger The XRP 1,300% Break To $36 This Bull Cycle?
    • Bitcoin Slips Toward $95K as Strategy Transfer Fuels $1B Sale Speculation
    • Bitmain Antminer Z15 Pro – Efficient Zcash Mining Hardware & Profitability
    • Crypto Market Steadies, Gemini’s Super App Ambition & Altcoin Surge
    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

    Related Posts

    Ethereum (ETH) Rebounds as 43-Day U.S. Shutdown Ends, Vitalik Buterin Outlines Scaling Roadmap

    November 14, 2025

    Here’s Why Ethereum Fusaka Upgrade Might Trigger The Next Explosive Leg Up For ETH

    November 14, 2025

    JPMorgan just put JPM Coin bank deposits on Base

    November 13, 2025

    Ethereum’s Fusaka Upgrade Is Just Around The Corner—What To Expect

    November 13, 2025
    Add A Comment
    Leave A Reply Cancel Reply

    Top Posts

    Analyzing Signals for Investors to Maximize Profits in November

    October 30, 2025

    Crypto Markets Shed $200B in 48 Hours as Bitcoin Dumps to 12-Day Low (Weekend Watch)

    May 31, 2025

    Allocation Update – Q1 2025

    May 9, 2025

    Ethereum Foundation Rolls Out Next Phase of Trillion-Dollar Security Initiative

    August 23, 2025

    Bitcoin Back At $109,000, But HODLer Profit-Taking Down 89%

    June 11, 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

    Bitcoin liquidity pattern signals ‘pivotal moment’ with $124K BTC target

    November 15, 2025

    Why Are The Bitcoin, Ethereum, And Dogecoin Prices Down Again?

    November 15, 2025

    Bitcoin Price Crashes To $94,000, New Six-Month Lows

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