From 8f92b3d22b9b978deca5cf9abf5f51e263f84312 Mon Sep 17 00:00:00 2001 From: Vyas Ramasubramani Date: Tue, 31 May 2022 17:38:29 -0700 Subject: [PATCH] Fix out of bounds access in spline interpolation. --- python/cuspatial/cuspatial/core/interpolate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/cuspatial/cuspatial/core/interpolate.py b/python/cuspatial/cuspatial/core/interpolate.py index cbdcc6a51..a64b7483c 100644 --- a/python/cuspatial/cuspatial/core/interpolate.py +++ b/python/cuspatial/cuspatial/core/interpolate.py @@ -184,7 +184,7 @@ def __call__(self, coordinates, groups=None): self.groups = groups.astype("int32") else: self.groups = Series( - cp.repeat(cp.array(0), len(self.t)) + cp.repeat(cp.array(0), len(coordinates)) ).astype("int32") result = _cubic_spline_fit( coordinates, self.groups, self.prefix, self.t, self.c