Close Menu
Altcoin ObserverAltcoin Observer
  • Regulation
  • Bitcoin
  • Altcoins
  • Market
  • Analysis
  • DeFi
  • Security
  • Ethereum
Categories
  • Altcoins (1,194)
  • Analysis (1,394)
  • Bitcoin (1,969)
  • Blockchain (1,139)
  • DeFi (1,351)
  • Ethereum (1,354)
  • Event (50)
  • Exclusive Deep Dive (1)
  • Landscape Ads (2)
  • Market (1,396)
  • Reddit (620)
  • Regulation (1,297)
  • Security (1,863)
  • Thought Leadership (1)
  • Uncategorized (3)
  • Videos (39)
Hand picked
  • Coinbase hackers demand $20 million ransom after insider-driven data breach
  • The price of Ethereum explodes by 97%, reaches $ 2,743 – here is the next target
  • Paraguay Foils Crypto Mining Flight near the Itaipu dam, 3 deportees, 1 decree
  • Here is why the price of bitcoin is blocked below $ 105,000
  • The Doges whales run in $ 0.005 token with faster growth than SHIB and PEPE in Q2
We are social
  • Facebook
  • Twitter
  • Instagram
  • YouTube
Facebook X (Twitter) Instagram
  • About us
  • Disclaimer
  • Terms of service
  • Privacy policy
  • Contact us
Facebook X (Twitter) Instagram YouTube LinkedIn
Altcoin ObserverAltcoin Observer
  • Regulation
  • Bitcoin
  • Altcoins
  • Market
  • Analysis
  • DeFi
  • Security
  • Ethereum
Events
Altcoin ObserverAltcoin Observer
Home»Ethereum»Solidity optimizer bug | Ethereum Foundation Blog
Ethereum

Solidity optimizer bug | Ethereum Foundation Blog

March 1, 2025No Comments3 Mins Read
Share Facebook Twitter Pinterest LinkedIn Tumblr Reddit Telegram Email
Eth org.jpeg
Share
Facebook Twitter LinkedIn Pinterest Email


A bug in the solidity optimizer has been reported through the Ethereum Foundation Bonus Programby Christoph Jentzsch. This bug is corrected in 2017-05-03, with the release of Solidity 0.4.11.

Background

The bug in question wondered how the optimizer optimizes the constants in the byte code. By “constant of bytes code”, we mean everything that is PUSHEd on the battery (not to be confused with the solidity constants). For example, if the value 0xffffffffffffffffffffffffffffffffffffffffffffffffff East PUSHED, then the optimizer can do PUSH32 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffreor choose to code this as PUSH1 1; NOT;.

An error in the optimizer made optimizations of the constant of bytes code stranded for certain cases by producing a routine which did not properly recreate the original constant.

The behavior described in the reported bug was found in a contract in which a method has stopped operating when another method – completely unrelated – was added to the contract. After analysis, it was determined that a certain number of conditions should exist at the same time for the bug to trigger. Any combination of conditions that would trigger the bug would systematically have the following conditions:

  1. The constant must start with 0xff … And finish with a long series of zeros (or vice versa).
  2. The same constant should be used in several locations, so that the optimizer chooses to optimize this particular constant. Alternatively, it should be used in the manufacturer, which optimizes size rather than gas.

In addition to the two conditions above, additional and more complicated conditions are necessary.

Analysis

This bug has been present in all published versions of Solidey since at least as far as summer 2015 to the present day. Although the bug has been present since 2015, it seems very difficult to trigger by “random” code:

We carried out a static analysis of all the contractual code deployed on the blockchain, and we did not find any occurrence of such a generated routine. Note, the fact that we have not found a bug in all the contract code does not guarantee the absence of such events.

Improvement

In order to provide better transparency and increased awareness of bugs in solidity, we have started to export information on vulnerabilities linked to solidity as JSON-FILS in the repository of the solidity code (1,,2). We hope that Block Explorers will integrate this information as well as other information related to contracts.

Etherscan has already implemented this, which can be seen here And here.

Regarding the bug itself, we added a mini-EVM to the optimizer which checks the accuracy of each routine generated at the time of the compilation.

In addition, the work has already started on an entirely specified and more high level intermediate language. Future optimizer routines on this language will be much easier to understand and audit and it will replace the current optimizer.



Source link

Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
Previous ArticleOpensea Tops in NFT users and trading sales in February 2025
Next Article DEFI adoption on emerging markets faces the hedge user experience, explains the CEO of Okto Wallet Rohit Jain

Related Posts

Ethereum

Ethereum went to a crucial meeting at $ 4,000 – here is why

May 18, 2025
Ethereum

Ethereum accumulation accumulates – Smart Money accuses 450K ETH

May 17, 2025
Ethereum

Ethereum faces resistance against Bitcoin – Eth / BTC bullish structure in question

May 17, 2025
Add A Comment
Leave A Reply Cancel Reply

Single Page Post
Share
  • Facebook
  • Twitter
  • Instagram
  • YouTube
Featured Content
Event

Super Vietnam 2025: Where Blockchain, AI, and Innovation Converge in Southeast Asia’s Rising Tech Powerhouse

May 13, 2025

Vietnam is riding a powerful wave of technological innovation, and Super Vietnam 2025 arrives at…

Event

Istanbul Blockchain Week 2025 Is Back: The Future of Web3 Unfolds in Turkey’s Innovation Hub

May 13, 2025

Leading Web3 marketing agency EAK Digital with official media partner Altcoin Observer is proud to…

1 2 3 … 45 Next
  • Facebook
  • Twitter
  • Instagram
  • YouTube

Paraguay Foils Crypto Mining Flight near the Itaipu dam, 3 deportees, 1 decree

May 18, 2025

Shiba Inu Burn Rate Skyrocket, Shib Price Breakout to come?

May 17, 2025

Sequoia Partner caught in a Coinbase data violation, more VC can be affected

May 17, 2025
Facebook X (Twitter) Instagram LinkedIn
  • About us
  • Disclaimer
  • Terms of service
  • Privacy policy
  • Contact us
© 2025 Altcoin Observer. all rights reserved by Tech Team.

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

bitcoin
Bitcoin (BTC) $ 103,410.71
ethereum
Ethereum (ETH) $ 2,486.02
tether
Tether (USDT) $ 1.00
xrp
XRP (XRP) $ 2.37
bnb
BNB (BNB) $ 643.54
solana
Solana (SOL) $ 167.76
usd-coin
USDC (USDC) $ 1.00
dogecoin
Dogecoin (DOGE) $ 0.216542
cardano
Cardano (ADA) $ 0.744715
tron
TRON (TRX) $ 0.272044