Thursday, June 19, 2025
No Result
View All Result
DOLLAR BITCOIN
Shop
  • Home
  • Blockchain
  • Bitcoin
  • Cryptocurrency
  • Altcoin
  • Ethereum
  • Market & Analysis
  • DeFi
  • More
    • Dogecoin
    • NFTs
    • XRP
    • Regulations
  • Shop
    • Bitcoin Book
    • Bitcoin Coin
    • Bitcoin Hat
    • Bitcoin Merch
    • Bitcoin Miner
    • Bitcoin Miner Machine
    • Bitcoin Shirt
    • Bitcoin Standard
    • Bitcoin Wallet
DOLLAR BITCOIN
No Result
View All Result
Home Ethereum

Solidity optimizer bug | Ethereum Foundation Blog

n70products by n70products
January 28, 2025
in Ethereum
0
Solidity optimizer bug | Ethereum Foundation Blog
0
SHARES
0
VIEWS
Share on FacebookShare on Twitter


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 situations should exist without delay for the bug to set off. Any mixture of situations that might set off the bug would persistently have the next two situations:

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

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

Evaluation

This bug is current in all launched variations of Solidity from at the very least 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. Observe, the truth that we’ve got not discovered a bug in all of the contract code doesn’t assure the absence of such occurrences.

Enhancements

In an effort to present higher transparency and elevated consciousness of bugs in Solidity, we’ve got 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 might 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 exchange the present optimizer.



Source link

Tags: BlogBugEthereumFoundationOptimizerSolidity
Previous Post

Brian Armstrong Says Coinbase Needs To Rethink Listing Process Amid Onslaught of ~1,000,000 New Coins a Week

Next Post

BNB Price Bounces Back Strongly: Is The Rally Sustainable?

Next Post
BNB Price Bounces Back Strongly: Is The Rally Sustainable?

BNB Price Bounces Back Strongly: Is The Rally Sustainable?

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Premium Content

Ripple Makes Massive XRP Transactions As Price Bounces

Ripple Makes Massive XRP Transactions As Price Bounces

December 25, 2023
XRP Price Rockets Past $2.50: Is More to Come?

XRP Price Rockets Past $2.50: Is More to Come?

December 3, 2024
President Trump’s Crypto Head Bo Hines Says White House Ushering in ‘Golden Age for Digital Assets’

President Trump’s Crypto Head Bo Hines Says White House Ushering in ‘Golden Age for Digital Assets’

April 10, 2025
Devcon: Hacia Colombia en 2022 [Redux]

Devcon: Hacia Colombia en 2022 [Redux]

March 18, 2024
Illinois Senate passes crypto bill to fight fraud and rug pulls

Illinois Senate passes crypto bill to fight fraud and rug pulls

April 11, 2025
Dogecoin Price Marks Local Bottom, Can Price Run 100% From Here Again?

Dogecoin Price Marks Local Bottom, Can Price Run 100% From Here Again?

November 5, 2024

Recent Posts

  • Ethereum Outperforms Bitcoin During Geopolitical Chaos – Is Altseason About To Ignite?
  • Telegram’s Durov Warns Of Irreparable Decline in France
  • Mapping Bitcoin’s road ahead: Is $93K or $107K next for BTC?

Categories

  • Altcoin
  • Bitcoin
  • Blockchain
  • Blog
  • Cryptocurrency
  • DeFi
  • Dogecoin
  • Ethereum
  • Market & Analysis
  • NFTs
  • Regulations
  • XRP

Recommended

Ethereum Outperforms Bitcoin During Geopolitical Chaos – Is Altseason About To Ignite?

Ethereum Outperforms Bitcoin During Geopolitical Chaos – Is Altseason About To Ignite?

June 19, 2025
Toncoin open interest soars 67% as Pavel Durov departs France

Telegram’s Durov Warns Of Irreparable Decline in France

June 19, 2025

© 2023 Dollar-Bitcoin | All Rights Reserved

No Result
View All Result
  • Home
  • Blockchain
  • Bitcoin
  • Cryptocurrency
  • Altcoin
  • Ethereum
  • Market & Analysis
  • DeFi
  • More
    • Dogecoin
    • NFTs
    • XRP
    • Regulations
  • Shop
    • Bitcoin Book
    • Bitcoin Coin
    • Bitcoin Hat
    • Bitcoin Merch
    • Bitcoin Miner
    • Bitcoin Miner Machine
    • Bitcoin Shirt
    • Bitcoin Standard
    • Bitcoin Wallet

© 2023 Dollar-Bitcoin | All Rights Reserved

Are you sure want to unlock this post?
Unlock left : 0
Are you sure want to cancel subscription?
Go to mobile version