Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VTK
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yohey Ishizu
VTK
Commits
36ad2819
Commit
36ad2819
authored
11 years ago
by
Sankhesh Jhaveri
Committed by
Code Review
11 years ago
Browse files
Options
Downloads
Plain Diff
Merge topic 'fix_buffer_overflow' into master
37615d26
BUG: Fix buffer overflow in vtkPUnstructuredGridConnectivity
parents
a00ef388
37615d26
Branches
Branches containing commit
Tags
v6.1.0.rc1
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Filters/ParallelGeometry/vtkPUnstructuredGridConnectivity.cxx
+3
-3
3 additions, 3 deletions
...ers/ParallelGeometry/vtkPUnstructuredGridConnectivity.cxx
with
3 additions
and
3 deletions
Filters/ParallelGeometry/vtkPUnstructuredGridConnectivity.cxx
+
3
−
3
View file @
36ad2819
...
...
@@ -658,8 +658,8 @@ void vtkPUnstructuredGridConnectivity::BuildGhostZoneConnectivity()
if
(
this
->
GlobalIDFieldName
==
NULL
)
{
// We assume "GlobalID" as the default
this
->
GlobalIDFieldName
=
new
char
[
8
];
strcpy
(
this
->
GlobalIDFieldName
,
"GlobalID"
);
this
->
GlobalIDFieldName
=
new
char
[
9
];
str
n
cpy
(
this
->
GlobalIDFieldName
,
"GlobalID"
,
9
);
}
// STEP 0: Ensure the input grid has GlobalID information
...
...
@@ -1058,7 +1058,7 @@ void vtkPUnstructuredGridConnectivity::SerializeGhostZones()
// serialize the global IDs s.t. the remote rank knows which node to
// update once the data is transferred.
bytestream
.
Push
(
&
globalIdx
[
0
],
nodelinks
->
size
());
bytestream
.
Push
(
&
globalIdx
[
0
],
static_cast
<
unsigned
int
>
(
nodelinks
->
size
())
)
;
// serialize the selected tuples for this remote rank
vtkFieldDataSerializer
::
SerializeTuples
(
tupleIds
,
PD
,
bytestream
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment