Close Menu

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    Russian investigator handed 16 years in jail for accepting 1,032-bitcoin bribe

    August 15, 2025

    Sapien to launch token to reward human intelligence in AI training

    August 15, 2025

    Justin Sun dumps another $14M of EIGEN after week of controversy

    August 14, 2025
    Facebook X (Twitter) Instagram
    Ai Crypto TimesAi Crypto Times
    • Altcoins
      • Bitcoin
      • Coinbase
      • Litecoin
    • Blockchain
    • Crypto
    • Ethereum
    • Lithosphere News Releases
    X (Twitter) Instagram YouTube LinkedIn
    Ai Crypto TimesAi Crypto Times
    Home » Solidity Bugfix Release | Ethereum Foundation Blog

    Solidity Bugfix Release | Ethereum Foundation Blog

    Michael JohnsonBy Michael JohnsonJuly 13, 2025No Comments3 Mins Read
    Facebook Twitter Pinterest LinkedIn Tumblr Reddit Telegram Email
    Share
    Facebook Twitter LinkedIn Pinterest Email


    The latest version 0.4.25 release of Solidity fixes
    two important bugs.
    Another important bug has already been fixed in version 0.4.22 but it was only discovered recently that the bug existed.

    Note that the Ethereum Foundation runs a bounty program for the code generator part of Solidity.

    Cleanup of Exponent in Exponentiation

    • Likelihood of occurrence: very low
    • Exploitability: high
    • Discoverability by tests: low
    • Fixed in version: 0.4.25

    Summary: Using short types in the exponent of an exponentiation operation can lead to invalid results.

    The Solidity language allows integer types that are shorter than 256 bits, even though the Ethereum Virtual Machine
    only knows types of exactly 256 bits. Because of that, higher order bits need to be set to zero from time to time.
    For many operations, it is not relevant whether those bits are set to zero or not (addition is one example).
    Because of that, the Solidity compiler delays this cleanup until it is needed in order to save gas.

    In the very special circumstance that the exponent of the ** operator has a type that is shorter
    than 256 bits, but not shorter than the type of the base and contains dirty higher order bits,
    this can lead to an incorrect result. Note that literal exponents like in x ** 2 as well as
    the case where the type of the base is uint256 or int256 are unaffected.

    Note that a function parameter can have dirty higher order bits if called by a malicious entity,
    and the same is true for data returned from functions of contracts deployed by malicious entities.

    After having screened a large number of contracts, we deem this bug to affect only a very tiny number of
    smart contracts, if any at all, because the regular uses of the exponentiation operator do not lead to the bug.

    This bug was found by nweller.

    Memory Corruption in Multi-Dimensional Array Decoder

    • Likelihood of occurrence: low
    • Exploitability: medium
    • Discoverability by tests: high
    • Introduced in version: 0.1.4
    • Fixed in version: 0.4.22

    Summary: Calling functions of other contracts that return multi-dimensional fixed-size arrays results in memory corruption.

    If Solidity code calls a function that returns a multi-dimensional fixed-size array,
    the returned ABI-encoded data has to be converted to Solidity’s internal representation
    of arrays. In Solidity, multi-dimensional arrays are implemented as arrays of
    memory pointers, while in the ABI, the data is encoded inline.
    The decoder did not take this difference into account with the result that the returned
    elements are interpreted as memory pointers and thus can cause memory
    corruption if the return values are accessed. Calling functions with multi-dimensional
    fixed-size array arguments is unaffected as is returning fixed-size arrays from function calls
    if they are not used in a Solidity contract.
    The bug is only in the component that decodes a multi-dimensional fixed-size array
    that is returned from a function call from Solidity.

    This bug was found by jmahhh.

    Invalid Encoding of Structs in Events

    • Likelihood of occurrence: low
    • Exploitability: low
    • Discoverability by tests: high
    • Introduced in version: 0.4.17
    • Fixed in version: 0.4.25

    Summary: Structs as event parameters are not handled properly.

    Structs were not meant to be supported as event parameters without the new ABI encoder.
    The compiler did accept them nevertheless, but encoded their memory address instead of their actual value.
    Even with the new ABI encoder, structs cannot be indexed event parameters.

    Now, structs are properly disallowed for the old encoder and if they are indexed also for the new encoder.



    Source link

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Michael Johnson

    Related Posts

    SIGN price soars 11% as Sign Foundation completes $12M token buyback

    August 13, 2025

    Fear & Greed Index hits 63 as Bitcoin, ETH, and SOL rebound

    August 7, 2025

    SEC staff statement on liquid staking may pave way for staking in spot Ether ETFs

    August 6, 2025
    Leave A Reply Cancel Reply

    Don't Miss

    Russian investigator handed 16 years in jail for accepting 1,032-bitcoin bribe

    Coinbase August 15, 2025

    Russia sentenced the former investigator after authorities discovered his bitcoin bribe in a file labeled…

    Sapien to launch token to reward human intelligence in AI training

    August 15, 2025

    Justin Sun dumps another $14M of EIGEN after week of controversy

    August 14, 2025

    Why Bitcoin treasury stocks aren’t keeping up with BTC?

    August 14, 2025
    Stay In Touch
    • Facebook
    • Twitter
    • Pinterest
    • Instagram
    • YouTube
    • Vimeo
    Our Picks

    Imagen Network Integrates Grok AI to Deliver More Personalized and Engaging Social Experiences

    August 14, 2025

    Imagen Network (IMAGE) Boosts User Engagement Using XRP for Instant Social Transactions

    August 13, 2025

    AGII Delivers Live Intelligence for Rapidly Evolving Web3 Smart Contracts

    August 13, 2025

    AGII Launches Advanced Diagnostics to Enhance AI Decision Auditing in Decentralized Systems

    August 13, 2025

    Subscribe to Updates

    Get the latest creative news from SmartMag about art & design.

    Demo
    • Popular
    • Recent
    • Top Reviews

    Polyhedra’s ZKJ token collapses following ‘abnormal on-chain activity’

    June 17, 2025

    Polyhedra’s ZKJ token collapses following ‘abnormal on-chain activity’

    June 17, 2025

    Colle AI Releases Design-Focused NFT Tools for Real-Time Creator Prototyping

    June 17, 2025

    Russian investigator handed 16 years in jail for accepting 1,032-bitcoin bribe

    August 15, 2025

    Sapien to launch token to reward human intelligence in AI training

    August 15, 2025

    Justin Sun dumps another $14M of EIGEN after week of controversy

    August 14, 2025
    Latest Galleries
    [latest_gallery cat="all" number="5" type="slider"]
    Latest Reviews
    Demo
    Top Posts

    Imagen Network Integrates Grok AI to Deliver More Personalized and Engaging Social Experiences

    August 14, 20250 Views

    Imagen Network (IMAGE) Boosts User Engagement Using XRP for Instant Social Transactions

    August 13, 20250 Views

    AGII Delivers Live Intelligence for Rapidly Evolving Web3 Smart Contracts

    August 13, 20250 Views

    AGII Launches Advanced Diagnostics to Enhance AI Decision Auditing in Decentralized Systems

    August 13, 20250 Views
    Don't Miss

    Russian investigator handed 16 years in jail for accepting 1,032-bitcoin bribe

    Coinbase August 15, 2025

    Russia sentenced the former investigator after authorities discovered his bitcoin bribe in a file labeled…

    Sapien to launch token to reward human intelligence in AI training

    August 15, 2025

    Justin Sun dumps another $14M of EIGEN after week of controversy

    August 14, 2025

    Why Bitcoin treasury stocks aren’t keeping up with BTC?

    August 14, 2025
    Stay In Touch
    • Facebook
    • Twitter
    • Pinterest
    • Instagram
    • YouTube
    • Vimeo

    Subscribe to Updates

    Get the latest creative news from SmartMag about art & design.

    Demo
    Top Posts

    Bitcoin.com Wallet Earns WalletConnect Certified Badge! | by Bitcoin.com | Jul, 2025

    July 18, 202549 Views

    Justin Sun sues Bloomberg after report claims he owns 60% of TRON tokens

    August 14, 202538 Views

    SIGN price soars 11% as Sign Foundation completes $12M token buyback

    August 13, 20254 Views

    ProfitFarmers Review – Is it Legit? July 2025

    July 7, 20251 Views
    Don't Miss

    Russian investigator handed 16 years in jail for accepting 1,032-bitcoin bribe

    Coinbase August 15, 2025

    Russia sentenced the former investigator after authorities discovered his bitcoin bribe in a file labeled…

    Sapien to launch token to reward human intelligence in AI training

    August 15, 2025

    Justin Sun dumps another $14M of EIGEN after week of controversy

    August 14, 2025

    Why Bitcoin treasury stocks aren’t keeping up with BTC?

    August 14, 2025
    Stay In Touch
    • Facebook
    • Twitter
    • Pinterest
    • Instagram
    • YouTube
    • Vimeo

    Subscribe to Updates

    Get the latest creative news from SmartMag about art & design.

    X (Twitter) Instagram YouTube LinkedIn
    Our Picks

    Russian investigator handed 16 years in jail for accepting 1,032-bitcoin bribe

    August 15, 2025

    Sapien to launch token to reward human intelligence in AI training

    August 15, 2025

    Justin Sun dumps another $14M of EIGEN after week of controversy

    August 14, 2025
    Recent Posts
    • Russian investigator handed 16 years in jail for accepting 1,032-bitcoin bribe
    • Sapien to launch token to reward human intelligence in AI training
    • Justin Sun dumps another $14M of EIGEN after week of controversy
    • Why Bitcoin treasury stocks aren’t keeping up with BTC?
    • Mango Market DAO fails to pass vote approving $700K SEC settlement
    © 2025 - 2026

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