Push function form ErasuredNamespacedMerkleTree will panic if it is called with data which size is smaller than the NamespaceSize. The panic will happen on this line. This is because the slice data[:appconsts.NamespaceSize] is out of bounds of the byte array.
Push function form
ErasuredNamespacedMerkleTree
will panic if it is called withdata
which size is smaller than theNamespaceSize
. The panic will happen on this line. This is because the slicedata[:appconsts.NamespaceSize]
is out of bounds of the byte array.