From 013ae72cd1e915eb7c2719fb194c8a91dec5479e Mon Sep 17 00:00:00 2001 From: Cary Phillips Date: Wed, 18 Dec 2024 17:32:20 -0800 Subject: [PATCH] Fix incorrect vec3 array size validation Copy/paste error in objectToV3, should be looking for a.size()==3, not 2. Signed-off-by: Cary Phillips --- src/wrappers/python/PyOpenEXR.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wrappers/python/PyOpenEXR.cpp b/src/wrappers/python/PyOpenEXR.cpp index 416c8950c2..9471b4fbd5 100644 --- a/src/wrappers/python/PyOpenEXR.cpp +++ b/src/wrappers/python/PyOpenEXR.cpp @@ -1554,7 +1554,7 @@ objectToV3(const py::object& object, Vec3& v) else if (py::isinstance>(object)) { auto a = object.cast>(); - if (a.ndim() == 1 && a.size() == 2) + if (a.ndim() == 1 && a.size() == 3) { auto p = static_cast(a.request().ptr); v.x = p[0];