Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
c3c8a50b
Commit
c3c8a50b
authored
Jul 13, 2007
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugfix in Catt, arrays of attrobjects > 20 elements caused segfault
parent
557b1a87
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
wb/lib/wb/src/wb_merep.cpp
wb/lib/wb/src/wb_merep.cpp
+5
-4
No files found.
wb/lib/wb/src/wb_merep.cpp
View file @
c3c8a50b
/*
* Proview $Id: wb_merep.cpp,v 1.3
7 2006-07-27 10:14:01
claes Exp $
* Proview $Id: wb_merep.cpp,v 1.3
8 2007-07-13 12:09:50
claes Exp $
* Copyright (C) 2005 SSAB Oxelösund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -615,8 +615,9 @@ void wb_merep::insertCattObject( pwr_tStatus *sts, pwr_tCid cid,
}
else
{
// Insert all offsets in the array
pwr_tStatus
tsts
=
0
;
for
(
j
=
0
;
j
<
adp
->
nElement
();
j
++
)
{
if
(
ODD
(
*
sts
)
&&
item
->
numOffset
<
merep_cCattOffsetSize
)
{
if
(
ODD
(
t
sts
)
&&
item
->
numOffset
<
merep_cCattOffsetSize
)
{
// Insert in current item
item
->
offset
[
item
->
numOffset
]
=
offset
+
adp
->
offset
()
+
j
*
adp
->
size
()
/
adp
->
nElement
();
...
...
@@ -624,9 +625,9 @@ void wb_merep::insertCattObject( pwr_tStatus *sts, pwr_tCid cid,
}
else
{
// Insert a new item
if
(
ODD
(
*
sts
))
if
(
ODD
(
t
sts
))
key
.
idx
++
;
item
=
(
merep_sClassAttr
*
)
tree_Insert
(
sts
,
m_catt_tt
,
&
key
);
item
=
(
merep_sClassAttr
*
)
tree_Insert
(
&
t
sts
,
m_catt_tt
,
&
key
);
item
->
offset
[
item
->
numOffset
]
=
offset
+
adp
->
offset
()
+
j
*
adp
->
size
()
/
adp
->
nElement
();
item
->
flags
[
item
->
numOffset
++
]
=
adp
->
flags
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment