Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

issue5736_common source realm

Package issue5736\_common is a regression fixture for [https://github.com/gnolang/gno/issues/5736](https://github.com...

Overview

Package issue5736_common is a regression fixture for https://github.com/gnolang/gno/issues/5736.

It mimics the gnoswap pattern that surfaced the bug: a non-crossing helper in an /r/ realm that performs in-place uint256 arithmetic on a value handed in from another /r/ realm. Before the fix to {Array,Struct}Value.Copy, this triggered:

Example
1panic: cannot directly modify readonly tainted object
2  gno.land/p/onbloc/uint256/bitwise.gno (z.arr[0] = z.arr[0] << n)

Functions 1

Imports 1

Source Files 2