" " Solidity optimizer bug | Ethereum Foundation Blog – NFT News Hubb " "
NFT News Hubb
Advertisement Banner
  • Home
  • NFT Market
  • Blockchain
  • Ethereum
  • Contact
No Result
View All Result
  • Home
  • NFT Market
  • Blockchain
  • Ethereum
  • Contact
No Result
View All Result
Wellnessnewshubb
No Result
View All Result
Home Ethereum

Solidity optimizer bug | Ethereum Foundation Blog

admin by admin
July 9, 2023
in Ethereum


A bug in the Solidity optimizer was reported through the Ethereum Foundation Bounty program, by Christoph Jentzsch. This bug is patched as of 2017-05-03, with the release of Solidity 0.4.11.

Background

The bug in question concerned how the optimizer optimizes on constants in the byte code. By “byte code constants”, we mean anything which is PUSHed on the stack (not to be confused with Solidity constants). For example, if the value 0xfffffffffffffffffffffffffffffffffffffffffffffffe is PUSHed, then the optimizer can either do PUSH32 0xfffffffffffffffffffffffffffffffffffffffffffffffe, or choose to encode this as PUSH1 1; NOT;.

An error in the optimizer made optimizations of byte code constants fail for certain cases by producing a routine that did not properly recreate the original constant.

The behavior described in the reported bug was found in a contract in which one method ceased functioning when another – totally unrelated – method was added to the contract. After analysis, it was determined that a number of conditions must exist at once for the bug to trigger. Any combination of conditions that would trigger the bug would consistently have the following two conditions:

  1. The constant needs to start with 0xFF… and end with a long series of zeroes (or vice versa).
  2. The same constant needs to be used in multiple locations, for the optimizer to choose to optimize this particular constant. Alternatively, it needs to be used in the constructor, which optimises for size rather than gas.

In addition to the two conditions above, there are further, more complicated conditions that are required.

Analysis

This bug is present in all released versions of Solidity from at least as far back as summer 2015 to the present. Although the bug has been present since 2015, it seems very hard to trigger by “random” code:

We performed a static analysis of all contract code deployed on the blockchain, and found no occurrence of such an invalidly generated routine. Note, the fact that we have not found a bug in all the contract code does not guarantee the absence of such occurrences.

Improvements

In order to provide better transparency and increased awareness of bugs in Solidity, we have started exporting information about Solidity-related vulnerabilities as JSON-files in the Solidity code repository(1,2). We hope that block explorers will integrate this information along with other contract-related information.

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

Concerning the bug itself, we added a mini-EVM to the optimizer which verifies the correctness of each generated routine at compile time.

Furthermore, work has already started on a fully-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

Previous Post

A Game Changer for the Industry

Next Post

APE/USD Finds a New Direction Above $2.00 Level

Next Post

APE/USD Finds a New Direction Above $2.00 Level

Recommended Post

London Mainnet Announcement | Ethereum Foundation Blog

6 months ago

Crypto And NFT Trademark Applications Are Down 66% From 2022

2 weeks ago

Road to Devcon Meetup and Event Grants

6 months ago

Looking back: 2022 on ethereum.org

8 months ago

Latest Ethereum Short Price Rally, Courtesy Of Whale Activities?

10 months ago

NFTICALLY, Token Spot Partner to Connect Athletes, Fans via Utility Tokens

10 months ago
NFT-41

© NFT News Hubb All rights reserved.

Use of these names, logos, and brands does not imply endorsement unless specified. By using this site, you agree to the Privacy Policy and Terms & Conditions.

Navigate Site

  • Home
  • NFT Market
  • Blockchain
  • Ethereum
  • Contact

Newsletter Sign Up.

No Result
View All Result
  • Home
  • NFT Market
  • Blockchain
  • Ethereum
  • Contact

© 2022 NFT News Hubb All rights reserved.

RTP Slot Tertinggi Slot Gampang Menang Link Slot Gacor Hari Ini https://jobba-utomlands.se/slot-maxwin/ Slot Bonus https://pubgindir.net/rtp-slot/ https://fxtrading.se/slot-gacor-gampang-menang/ https://www.michou.tv/link-slot-gacor/ https://www.bencooperphotography.com/slot-anti-rungkad/
Demo Slot Maxwin
Demo Slot Maxwin
Demo Slot Maxwin
Demo Slot Maxwin
Demo Slot Maxwin
Demo Slot Maxwin
Demo Slot Maxwin
Slot Gacor Maxwin
Slot Gacor Maxwin
https://curp-gratis.com/demo-slot/
Slot Terbaru
Slot Pragmatic
Slot Online Terpercaya
Slot Bonus
https://athleticssportsandperformance.com/slot-online-gacor/
https://www.adeccogroup.com.ar/situs-slot-online-gacor-pragmatic-gampang-maxwin/
Link Slot Gacor Hari Ini
Slot Gampang Menang
https://canadianbuyers.club/wp-includes/slot-gacor/
https://vicdigital.it/slot-gacor/
Slot Anti Rungkad
https://dailyaddictiontreatment.com/situs-slot-online-jackpot-terbesar/
https://studytutee.com/wp-includes/slot-gacor/
https://northernrevive.co.uk/slot-gacor/
https://t20.com.pk/slot-gacor/
https://thekingzcart.com/slot-gacor/
https://iavstudios.com/wp-admin/slot-gacor/
https://www.hartwellclothing.com/wp-content/uploads/slot-gacor/
https://upgradedtamilan.com/slot-gacor/
https://janestrinket.com/slot-gacor/
https://bizcoachng.com/wp-includes/slot-gacor/
Situs IDN Poker
https://royalmeg.com/wp-content/slot-gacor/
Situs IDN Poker
https://newsarkariyojana.in/e-district-assam-login-registration-edistrict-assam-gov-in-status/
Situs IDN Poker

https://www.distribuidorapromax.com/slot-gacor-maxwin/

https://tesisparaingenieriacivil.com/slot-gacor-maxwin/

https://saludhuellitas.com/wp-content/slot-maxwin/

https://altavocesinalambricos.es/slot-maxwin/

https://www.blog.identitedigital.fr/slot-gacor-maxwin/

https://www.followernft.net/slot-gacor-maxwin/

https://www.followernft.net/slot-maxwin/

https://confrasesoriginales.com/slot-maxwin/

https://www.generateurnft.com/slot-maxwin/

https://enricmcatala.com/slot-maxwin/

https://www.cotondemaquillant.com/slot-maxwin/

https://amazinghostingdeals.com/slot-maxwin/

https://www.nftsmag.fr/slot-gacor-maxwin/

https://www.nftlove.fr/slot-maxwin/

Slot Gacor Maxwin

Slot Gacor Maxwin

Demo Slot Maxwin

Slot Gacor Hari Ini

Slot Gacor Hari Ini

Slot Gacor Hari Ini

Slot Anti Rungkat

Slot Gacor Hari Ini

Slot Gacor Hari Ini

Slot Anti Rungkat

Slot Gacor Hari Ini

Habanero

https://www.filmrumor.com/situs-judi-slot-online%20terbaik%20-terpercaya/

https://www.stelliumoffersrack.com/slot-gacor-terbaik-dan-terpercaya-no-1/

Slot Gacor Hari Ini

Slot Gacor Hari Ini

https://amosfitnessandfood.com/situs-judi-slot-online/

Slot Gacor Hari Ini

Slot Gacor

Slot Online Gacor

https://proctologonavarra.com/link-slot-gacor/