You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i was looking through the code of ark-serialize and found a few places where, even though a validate: Validate is passed as argument to a serialization function, it is hardcoded to Validate::No regardless of the value passed by the caller and passed down the line.
this looks like a bug to me, especially given the fact that compress: Compress is passed as-is to sub calls, but maybe there is a reason where the validation should be disabled in some places? 😮
so each value is not validated individually, but if the user provides Validate::Yes, then all the values are validated at the end in a batch, is that correct?
hello there 👋
i was looking through the code of
ark-serialize
and found a few places where, even though avalidate: Validate
is passed as argument to a serialization function, it is hardcoded toValidate::No
regardless of the value passed by the caller and passed down the line.this looks like a bug to me, especially given the fact that
compress: Compress
is passed as-is to sub calls, but maybe there is a reason where the validation should be disabled in some places? 😮hope this helps in some way 😇
cheers 😊
locations i found in the code
algebra/serialize/src/impls.rs
Line 462 in bb663bc
algebra/serialize/src/impls.rs
Line 519 in bb663bc
algebra/serialize/src/impls.rs
Line 616 in bb663bc
algebra/serialize/src/impls.rs
Line 678 in bb663bc
The text was updated successfully, but these errors were encountered: