mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 21:10:33 +05:00
Fix invalid string access in BoundaryLayerTool
When AddFaceDescriptor reallocates the array the fd reference becomes dangling. See #203
This commit is contained in:
parent
975414c2fe
commit
8cb4518f33
@ -723,7 +723,8 @@ namespace netgen
|
||||
new_fd.SetBCProperty(new_si);
|
||||
mesh.AddFaceDescriptor(new_fd);
|
||||
si_map[facei] = new_si;
|
||||
mesh.SetBCName(new_si-1, fd.GetBCName());
|
||||
// AddFaceDescriptor may reallocate, fd is invalidated
|
||||
mesh.SetBCName(new_si-1, mesh.GetFaceDescriptor(facei).GetBCName());
|
||||
face_done.SetBit(facei);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user