Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
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
Chen Yisong
lxc
Commits
af5e7ee1
Unverified
Commit
af5e7ee1
authored
Oct 10, 2018
by
2xsec
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parse: fix uninitialized pointer access
Signed-off-by:
2xsec
<
dh48.jeong@samsung.com
>
parent
8392708e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
parse.c
src/lxc/parse.c
+3
-2
No files found.
src/lxc/parse.c
View file @
af5e7ee1
...
...
@@ -81,12 +81,12 @@ int lxc_file_for_each_line_mmap(const char *file, lxc_file_cb callback, void *da
ret
=
fstat
(
fd
,
&
st
);
if
(
ret
<
0
)
{
SYSERROR
(
"Failed to stat config file
\"
%s
\"
"
,
file
);
goto
on_error
;
goto
on_error
_fstat
;
}
ret
=
0
;
if
(
st
.
st_size
==
0
)
goto
on_error
;
goto
on_error
_fstat
;
ret
=
-
1
;
buf
=
lxc_strmmap
(
NULL
,
st
.
st_size
,
PROT_READ
|
PROT_WRITE
,
...
...
@@ -117,6 +117,7 @@ on_error:
ret
=
-
1
;
}
on_error_fstat:
saved_errno
=
errno
;
close
(
fd
);
errno
=
saved_errno
;
...
...
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