Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
criu
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhul
criu
Commits
9c93e0d3
Commit
9c93e0d3
authored
Jan 26, 2018
by
Andrei Vagin
Committed by
Andrei Vagin
Mar 02, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
criu: fix two issue with possible out-of-bound access
Signed-off-by:
Andrei Vagin
<
avagin@openvz.org
>
parent
ecbec8be
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
kerndat.c
criu/kerndat.c
+1
-1
parasite.c
criu/pie/parasite.c
+1
-1
No files found.
criu/kerndat.c
View file @
9c93e0d3
...
...
@@ -197,7 +197,7 @@ int kerndat_files_stat(bool early)
buf
[
ret
]
=
'\0'
;
max_files
=
atol
(
buf
);
}
ret
=
read
(
fd2
,
buf
,
sizeof
(
buf
));
ret
=
read
(
fd2
,
buf
,
sizeof
(
buf
)
-
1
);
if
(
ret
>
0
)
{
buf
[
ret
]
=
'\0'
;
nr_open
=
atol
(
buf
);
...
...
criu/pie/parasite.c
View file @
9c93e0d3
...
...
@@ -630,7 +630,7 @@ static int parasite_dump_cgroup(struct parasite_dump_cgroup_args *args)
return
-
1
;
}
if
(
len
==
sizeof
(
*
arg
s
))
{
if
(
len
==
sizeof
(
args
->
content
s
))
{
pr_warn
(
"/proc/self/cgroup was bigger than the page size
\n
"
);
return
-
1
;
}
...
...
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