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
b405dec6
Unverified
Commit
b405dec6
authored
Apr 01, 2021
by
Christian Brauner
Committed by
GitHub
Apr 01, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3760 from evverx/reject-giant-configs
oss-fuzz: reject giant configs early
parents
f5312e35
e7e0343f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
fuzz-lxc-config-read.c
src/tests/fuzz-lxc-config-read.c
+7
-0
No files found.
src/tests/fuzz-lxc-config-read.c
View file @
b405dec6
...
...
@@ -13,6 +13,13 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
char
tmpf
[]
=
"/tmp/fuzz-lxc-config-read-XXXXXX"
;
struct
lxc_conf
*
conf
=
NULL
;
/*
* 100Kb should probably be enough to trigger all the issues
* we're interested in without any timeouts
*/
if
(
size
>
102400
)
return
0
;
fd
=
lxc_make_tmpfile
(
tmpf
,
false
);
lxc_test_assert_abort
(
fd
>=
0
);
lxc_write_nointr
(
fd
,
data
,
size
);
...
...
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