File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -1948,7 +1948,12 @@ pub fn expand_deferred(params: ExpandDeferredParams) -> Result<DeferredValues<Fp
1948
1948
let zeta = ScalarChallenge :: limbs_to_field ( & plonk0. zeta_bytes ) ;
1949
1949
let alpha = ScalarChallenge :: limbs_to_field ( & plonk0. alpha_bytes ) ;
1950
1950
let step_domain: u8 = proof_state. deferred_values . branch_data . domain_log2 . as_u8 ( ) ;
1951
- let Some ( domain) = Radix2EvaluationDomain :: < Fp > :: new ( 1 << step_domain as u64 ) else {
1951
+
1952
+ let Some ( num_coeffs) = 1u64 . checked_shl ( step_domain as u32 ) else {
1953
+ return Err ( InvalidBigInt ) ;
1954
+ } ;
1955
+
1956
+ let Some ( domain) = Radix2EvaluationDomain :: < Fp > :: new ( num_coeffs as usize ) else {
1952
1957
return Err ( InvalidBigInt ) ;
1953
1958
} ;
1954
1959
Original file line number Diff line number Diff line change @@ -976,7 +976,7 @@ mod on_fail {
976
976
977
977
#[ allow( unreachable_code) ]
978
978
fn dump_to_file < D : BinProtWrite > ( data : & D , filename : & str ) {
979
- #[ cfg( test) ]
979
+ #[ cfg( any ( test, feature = "fuzzing" ) ) ]
980
980
{
981
981
let ( _, _) = ( data, filename) ; // avoid unused vars
982
982
return ;
You can’t perform that action at this time.
0 commit comments