aurora-is-near / aurora-engine

⚙️ Aurora Engine implements an Ethereum Virtual Machine (EVM) on the NEAR Protocol.
https://doc.aurora.dev/develop/compat/evm
330 stars 82 forks source link

Fix: Lack of 0 Value Checks in Depth::decrement() #725

Closed lempire123 closed 1 year ago

lempire123 commented 1 year ago

In engine-standalone-tracing, calling Depth::decrement()on value of 0 will cause unhandled panic.

Given Depth is of u32 type, decrementing it into negative will trigger panic, stopping execution of the executable.