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
16da59ba
Commit
16da59ba
authored
Dec 27, 2005
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Array index check removed, and Cell reset object is still an objid
parent
7e2020d8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
26 deletions
+26
-26
wb/lib/wb/src/wb_gcg.c
wb/lib/wb/src/wb_gcg.c
+26
-26
No files found.
wb/lib/wb/src/wb_gcg.c
View file @
16da59ba
/*
/*
* Proview $Id: wb_gcg.c,v 1.2
7 2005-11-10 08:23:3
8 claes Exp $
* Proview $Id: wb_gcg.c,v 1.2
8 2005-12-27 09:43:0
8 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
* Copyright (C) 2005 SSAB Oxelsund AB.
*
*
* This program is free software; you can redistribute it and/or
* This program is free software; you can redistribute it and/or
...
@@ -6830,11 +6830,11 @@ vldh_t_node node;
...
@@ -6830,11 +6830,11 @@ vldh_t_node node;
gcg_error_msg
(
gcgctx
,
GSX__REFPARTYPE
,
node
);
gcg_error_msg
(
gcgctx
,
GSX__REFPARTYPE
,
node
);
return
GSX__NEXTNODE
;
return
GSX__NEXTNODE
;
}
}
if
(
info
.
index
>
info
.
nElement
-
1
)
{
// if (
index > info.nElement - 1) {
/* Element index to large */
//
/* Element index to large */
gcg_error_msg
(
gcgctx
,
GSX__REFPARTYPE
,
node
);
//
gcg_error_msg( gcgctx, GSX__REFPARTYPE, node);
return
GSX__NEXTNODE
;
//
return GSX__NEXTNODE;
}
//
}
}
}
switch
(
info
.
type
)
{
switch
(
info
.
type
)
{
...
@@ -8200,11 +8200,11 @@ vldh_t_node node;
...
@@ -8200,11 +8200,11 @@ vldh_t_node node;
gcg_error_msg
(
gcgctx
,
GSX__REFPARTYPE
,
node
);
gcg_error_msg
(
gcgctx
,
GSX__REFPARTYPE
,
node
);
return
GSX__NEXTNODE
;
return
GSX__NEXTNODE
;
}
}
if
(
info
.
index
>
info
.
nElement
-
1
)
{
//
if ( info.index > info.nElement - 1) {
/* Element index to large */
//
/* Element index to large */
gcg_error_msg
(
gcgctx
,
GSX__REFPARTYPE
,
node
);
//
gcg_error_msg( gcgctx, GSX__REFPARTYPE, node);
return
GSX__NEXTNODE
;
//
return GSX__NEXTNODE;
}
//
}
}
}
switch
(
info
.
type
)
{
switch
(
info
.
type
)
{
...
@@ -10985,11 +10985,11 @@ vldh_t_node node;
...
@@ -10985,11 +10985,11 @@ vldh_t_node node;
gcg_error_msg
(
gcgctx
,
GSX__REFPARTYPE
,
node
);
gcg_error_msg
(
gcgctx
,
GSX__REFPARTYPE
,
node
);
return
GSX__NEXTNODE
;
return
GSX__NEXTNODE
;
}
}
if
(
info
.
index
>
info
.
nElement
-
1
)
{
//
if ( info.index > info.nElement - 1) {
/* Element index to large */
//
/* Element index to large */
gcg_error_msg
(
gcgctx
,
GSX__REFPARTYPE
,
node
);
//
gcg_error_msg( gcgctx, GSX__REFPARTYPE, node);
return
GSX__NEXTNODE
;
//
return GSX__NEXTNODE;
}
//
}
}
}
...
@@ -12421,8 +12421,8 @@ vldh_t_node node;
...
@@ -12421,8 +12421,8 @@ vldh_t_node node;
pwr_tClassId
windclass
;
pwr_tClassId
windclass
;
ldh_tSesContext
ldhses
;
ldh_tSesContext
ldhses
;
char
*
name
;
char
*
name
;
pwr_
sAttrRef
*
resattrref
_ptr
;
pwr_
tObjid
*
resobjid
_ptr
;
pwr_
s
AttrRef
resattrref
;
pwr_
t
AttrRef
resattrref
;
pwr_tClassId
class
;
pwr_tClassId
class
;
ldhses
=
(
node
->
hn
.
wind
)
->
hw
.
ldhses
;
ldhses
=
(
node
->
hn
.
wind
)
->
hw
.
ldhses
;
...
@@ -12446,11 +12446,11 @@ vldh_t_node node;
...
@@ -12446,11 +12446,11 @@ vldh_t_node node;
node
->
ln
.
oid
,
node
->
ln
.
oid
,
"RtBody"
,
"RtBody"
,
"ResetObject"
,
"ResetObject"
,
(
char
**
)
&
res
attrref
_ptr
,
&
size
);
(
char
**
)
&
res
objid
_ptr
,
&
size
);
if
(
EVEN
(
sts
))
return
sts
;
if
(
EVEN
(
sts
))
return
sts
;
resattrref
=
*
resattrref_ptr
;
resattrref
=
cdh_ObjidToAref
(
*
resobjid_ptr
)
;
free
((
char
*
)
res
attrref
_ptr
);
free
((
char
*
)
res
objid
_ptr
);
if
(
cdh_ObjidIsNotNull
(
resattrref
.
Objid
))
{
if
(
cdh_ObjidIsNotNull
(
resattrref
.
Objid
))
{
sts
=
gcg_replace_ref
(
gcgctx
,
&
resattrref
,
node
);
sts
=
gcg_replace_ref
(
gcgctx
,
&
resattrref
,
node
);
...
@@ -15126,11 +15126,11 @@ vldh_t_node node;
...
@@ -15126,11 +15126,11 @@ vldh_t_node node;
gcg_error_msg
(
gcgctx
,
GSX__REFPARTYPE
,
node
);
gcg_error_msg
(
gcgctx
,
GSX__REFPARTYPE
,
node
);
return
GSX__NEXTNODE
;
return
GSX__NEXTNODE
;
}
}
if
(
info
.
index
>
info
.
nElement
-
1
)
{
//
if ( info.index > info.nElement - 1) {
/* Element index to large */
//
/* Element index to large */
gcg_error_msg
(
gcgctx
,
GSX__REFPARTYPE
,
node
);
//
gcg_error_msg( gcgctx, GSX__REFPARTYPE, node);
return
GSX__NEXTNODE
;
//
return GSX__NEXTNODE;
}
//
}
}
}
switch
(
info
.
type
)
{
switch
(
info
.
type
)
{
...
...
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