Skip to content

bug: field.BigIntPool.Put() allows nil value #316

@gbotrel

Description

@gbotrel

some big.Int operation mutates the receiver and set it to nil (like ModInverse) .

So a code like

v := pool.Get()
v.ModInverse(...)
pool.Put(v)

May put a nil value into the pool.

Metadata

Metadata

Assignees

Labels

type: bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions