Close Menu
Altcoin ObserverAltcoin Observer
  • Regulation
  • Bitcoin
  • Altcoins
  • Market
  • Analysis
  • DeFi
  • Security
  • Ethereum
Categories
  • Altcoins (1,147)
  • Analysis (1,349)
  • Bitcoin (1,923)
  • Blockchain (1,113)
  • DeFi (1,320)
  • Ethereum (1,315)
  • Event (48)
  • Exclusive Deep Dive (1)
  • Landscape Ads (2)
  • Market (1,361)
  • Reddit (574)
  • Regulation (1,266)
  • Security (1,817)
  • Thought Leadership (1)
  • Uncategorized (3)
  • Videos (39)
Hand picked
  • Ethereum Pectra upgrade: what’s coming
  • Banks have just received the green light: WOI erases the role of cryptographic trading
  • New EU regulation to follow crypto transfers and prohibit confidentiality
  • XRP for health care: Welgistics secures $ 50 million in credit for pioneer blockchain payments
  • Dow decreases 119 points, nasdaq inches higher, Bitcoin settles at $ 103,000 in the middle of rumors in China in China
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

Blackrock meeting dry crypto task force to discuss tokenization, rules andp

May 10, 2025
Ethereum

The Ethereum price increases sharply above $ 2,300 after retail investors discharged their assets

May 9, 2025
Ethereum

Ethereum goes to $ 2,000 in the middle of the rise, this level is the next

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

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

Tokenomics : The Mechanics and Magic of Decentralized Funding | Jason Fernandes | TEDxSDMIMD Mysuru

May 9, 2025

The Mechanics and Magic of Decentralized Funding explores the powerful intersection of blockchain technology, economic…

Event

Altcoin Observer – Official Media Partner for Dutch Blockchain Week 2025

May 9, 2025

30% off DBW Summit! Use code OBSERVER30 at dutchblockchainweek.com. Only for A.O and AdLunam Community …

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

XRP for health care: Welgistics secures $ 50 million in credit for pioneer blockchain payments

May 10, 2025

Trader says that the market has prepared a strong reversal after a bull movement – here is its target for Ethereum and Altcoins

May 9, 2025

The commissioner of the dry criticizes the Ripple agreement, warns of the weakening of the legal authority

May 9, 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) $ 102,967.59
ethereum
Ethereum (ETH) $ 2,335.39
tether
Tether (USDT) $ 1.00
xrp
XRP (XRP) $ 2.35
bnb
BNB (BNB) $ 670.19
solana
Solana (SOL) $ 171.70
usd-coin
USDC (USDC) $ 1.00
dogecoin
Dogecoin (DOGE) $ 0.204424
cardano
Cardano (ADA) $ 0.776154
tron
TRON (TRX) $ 0.262374