Fair-Squares / fair-squares

Fair housing for all
http://www.fair-squares.nl
Apache License 2.0
16 stars 8 forks source link

Security issue #263

Open ndkazu opened 1 year ago

ndkazu commented 1 year ago

Motivation

In storages, when storing multiple values using Vec<>, an attack vector is created: someone could create a Massive vector, and overwelm the chain.

Suggested Solution

We should limit the vector size through BoundedVec<> instead, and use constants defined in the runtime, for the bounded vector size.