8000 Unsound subtraction in the primary input packing · Issue #170 · clearmatics/zeth · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Unsound subtraction in the primary input packing #170
Closed
@AntoineRondelet

Description

@AntoineRondelet

See here: https://github.com/clearmatics/zeth/blob/develop/src/circuits/joinsplit.tcc#L269

As such, the difference: https://github.com/clearmatics/zeth/blob/develop/src/circuits/joinsplit.tcc#L269 is a dangerous operation since it corresponds to a difference of unsigned integers (size_t is unsigned, see: https://en.cppreference.com/w/cpp/types/size_t). As such unexpected behavior will arise if FieldT:: capacity() > HashT::get_digest_len()

Metadata

Metadata

Labels

arithmetic-circuit/R1CSTask related to the R1CS programsbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0