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
4df6a2bf
Commit
4df6a2bf
authored
Jun 12, 2015
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Class cache, fix for V4.8.2 and V4.6
parent
ab17c070
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
3 deletions
+33
-3
src/lib/rt/src/rt_cmvolc.c
src/lib/rt/src/rt_cmvolc.c
+1
-1
src/lib/rt/src/rt_ndc.c
src/lib/rt/src/rt_ndc.c
+2
-2
src/lib/rt/src/rt_net.c
src/lib/rt/src/rt_net.c
+30
-0
No files found.
src/lib/rt/src/rt_cmvolc.c
View file @
4df6a2bf
...
...
@@ -649,7 +649,7 @@ createObject (
if
(
body
==
NULL
&&
bodySize
>
0
)
return
NULL
;
if
(
op
->
g
.
size
<
bodySize
)
if
(
bodySize
!=
0
&&
op
->
g
.
size
<
bodySize
-
4
)
// Allow missing alignment for 4.6
return
NULL
;
if
(
bodySize
>
0
)
...
...
src/lib/rt/src/rt_ndc.c
View file @
4df6a2bf
...
...
@@ -1758,7 +1758,7 @@ ndc_NarefToRaref(
}
}
if
(
l_ccp
!=
ccp
)
{
if
(
l_ccp
!=
ccp
&&
l_ccp
->
flags
.
b
.
cacheLock
)
{
cmvolc_UnlockClass
(
NULL
,
l_ccp
);
}
...
...
@@ -1836,7 +1836,7 @@ ndc_NarefToRaref(
}
}
if
(
l_ccp
!=
ccp
)
{
if
(
l_ccp
!=
ccp
&&
l_ccp
->
flags
.
b
.
cacheLock
)
{
cmvolc_UnlockClass
(
NULL
,
l_ccp
);
}
...
...
src/lib/rt/src/rt_net.c
View file @
4df6a2bf
...
...
@@ -339,6 +339,36 @@ ConvertGet (
}
}
/* Fix for getGclassR message from from V4.8.2 with incompatible ClassDef element */
if
(
get
->
type
.
s
==
(
qcom_eStype
)
net_eMsg_getGclassR
)
{
int
sts
=
((
net_sGetGclassR
*
)
get
->
data
)
->
sts
;
if
(
sts
&
1
)
{
int
*
ip
=
(
int
*
)
&
((
net_sGetGclassR
*
)
get
->
data
)
->
gclass
.
bo
;
int
size
=
get
->
size
-
((
char
*
)
ip
-
(
char
*
)
get
->
data
)
-
4
;
if
(
*
ip
==
0
&&
((
net_sGetGclassR
*
)
get
->
data
)
->
attr
[
0
].
ao
.
oid
.
vid
==
0
)
{
char
*
tmp
=
malloc
(
size
);
memcpy
(
tmp
,
ip
+
1
,
size
);
memcpy
(
ip
,
tmp
,
size
);
get
->
size
-=
4
;
free
(
tmp
);
int
i
;
int
acount
=
((
net_sGetGclassR
*
)
get
->
data
)
->
gclass
.
acount
;
for
(
i
=
0
;
i
<
acount
;
i
++
)
{
ip
=
(
int
*
)
&
((
net_sGetGclassR
*
)
get
->
data
)
->
attr
[
i
];
size
=
get
->
size
-
((
char
*
)
ip
-
(
char
*
)
get
->
data
)
-
4
;
if
(
size
<=
0
)
break
;
char
*
tmp
=
malloc
(
size
);
memcpy
(
tmp
,
ip
+
1
,
size
);
memcpy
(
ip
,
tmp
,
size
);
get
->
size
-=
4
;
free
(
tmp
);
}
}
}
}
if
(
np
==
qdb
->
my_node
||
np
->
bo
==
qdb
->
my_node
->
bo
)
{
if
(
get
->
data
!=
data
)
memcpy
(
data
,
get
->
data
,
get
->
size
);
pwr_Return
(
TRUE
,
sts
,
NET__SUCCESS
);
...
...
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