Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sroamd
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
nexedi
sroamd
Commits
4153c4bd
Commit
4153c4bd
authored
Apr 11, 2020
by
Antonin Décimo
Committed by
Juliusz Chroboczek
Apr 11, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix possible array overrun.
If there are 16 slots, then the maximum index is 15.
parent
121f4956
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
sroamd.c
sroamd.c
+2
-2
No files found.
sroamd.c
View file @
4153c4bd
...
@@ -241,11 +241,11 @@ main(int argc, char **argv)
...
@@ -241,11 +241,11 @@ main(int argc, char **argv)
int
af
;
int
af
;
af
=
parse_address
(
optarg
,
buf
);
af
=
parse_address
(
optarg
,
buf
);
if
(
af
==
4
)
{
if
(
af
==
4
)
{
if
(
numdnsv4
>
16
)
if
(
numdnsv4
>
=
16
)
goto
usage
;
goto
usage
;
memcpy
(
dnsv4
[
numdnsv4
++
],
buf
,
4
);
memcpy
(
dnsv4
[
numdnsv4
++
],
buf
,
4
);
}
else
if
(
af
==
6
)
{
}
else
if
(
af
==
6
)
{
if
(
numdnsv6
>
16
)
if
(
numdnsv6
>
=
16
)
goto
usage
;
goto
usage
;
memcpy
(
dnsv6
[
numdnsv6
++
],
buf
,
16
);
memcpy
(
dnsv6
[
numdnsv6
++
],
buf
,
16
);
}
else
{
}
else
{
...
...
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