From 9e345c582019abb5fc82ec29dfef4776fb1b7d3d Mon Sep 17 00:00:00 2001 From: mattijs Date: Thu, 26 Jul 2018 12:07:54 +0100 Subject: [PATCH] BUG: surfaceIntersection: access out of bounds. Fixes #955 --- .../booleanOps/surfaceIntersection/surfaceIntersection.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/meshTools/triSurface/booleanOps/surfaceIntersection/surfaceIntersection.C b/src/meshTools/triSurface/booleanOps/surfaceIntersection/surfaceIntersection.C index c79da8b2d2..1a067714c2 100644 --- a/src/meshTools/triSurface/booleanOps/surfaceIntersection/surfaceIntersection.C +++ b/src/meshTools/triSurface/booleanOps/surfaceIntersection/surfaceIntersection.C @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation - \\/ M anipulation | Copyright (C) 2015-2017 OpenCFD Ltd. + \\/ M anipulation | Copyright (C) 2015-2018 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -867,7 +867,7 @@ void Foam::surfaceIntersection::doCutEdges maskFaces.append(pHit.index()); - if (maskRegions[surf1[pHit.index()].region()]) + if (maskRegions.test(surf1[pHit.index()].region())) { continue; }