From 5dd6da255e7058d9ccb38777c7f7082bac6ec477 Mon Sep 17 00:00:00 2001 From: Kevin Jue Date: Mon, 18 Dec 2023 17:19:15 -0800 Subject: [PATCH] fix for V-SCT-VUL-013 --- plonk/gates/coset_interpolation_gate.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plonk/gates/coset_interpolation_gate.go b/plonk/gates/coset_interpolation_gate.go index 58e53da..f8f2494 100644 --- a/plonk/gates/coset_interpolation_gate.go +++ b/plonk/gates/coset_interpolation_gate.go @@ -199,6 +199,10 @@ func (g *CosetInterpolationGate) EvalUnfiltered( startIndex := 1 + (g.degree-1)*(i+1) endIndex := startIndex + g.degree - 1 + if endIndex > g.numPoints() { + endIndex = g.numPoints() + } + computedEval, computedProd = glApi.PartialInterpolateExtAlgebra( domain[startIndex:endIndex], values[startIndex:endIndex],