Finschia / cosmwasm

Fast and reusable WebAssembly smart contract runtime(and library) for finschia-sdk.
Apache License 2.0
27 stars 14 forks source link

Improve gas metering for metric the memory usage #154

Open brew0722 opened 2 years ago

brew0722 commented 2 years ago

Close: https://github.com/CosmWasm/cosmwasm/issues/1072#issuecomment-942030575

Allowing the bulk-memory feature makes it vulnerable to attacks that maliciously allocate large amounts of memory. To solve this, we need to support gas metering to determine the amount of memory.