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
d5bdffe8
Commit
d5bdffe8
authored
Dec 09, 2008
by
Claes pwr46/data0/x4-6-0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Conversion of subscription with incorrect size could causes segfault
parent
b556d5f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/lib/rt/src/rt_ndc.c
src/lib/rt/src/rt_ndc.c
+4
-2
No files found.
src/lib/rt/src/rt_ndc.c
View file @
d5bdffe8
...
...
@@ -1479,9 +1479,11 @@ ndc_ConvertRemoteToNativeTable (
relem
=
cap
->
elem
;
}
/* Adjust size to be multiple of element size */
if
(
*
size
<
ap
->
size
)
*
size
-=
*
size
%
(
ap
->
size
/
ap
->
elem
)
;
if
(
!
conv_Fctn
[
cidx
](
ap
->
elem
,
ap
->
size
/
ap
->
elem
,
(
char
*
)
tp
+
(
ap
->
offs
-
base
)
+
toffs
,
(
int
*
)
size
,
if
(
!
conv_Fctn
[
cidx
](
ap
->
elem
,
ap
->
size
/
ap
->
elem
,
(
char
*
)
tp
+
(
ap
->
offs
-
base
)
+
toffs
,
(
int
*
)
size
,
relem
,
cap
->
size
/
cap
->
elem
,
(
const
char
*
)
sp
+
roffs
+
soffs
,
adef
))
pwr_Return
(
NO
,
sts
,
NDC__CONVERT
);
...
...
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