Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cmp_tool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dominik Loidolt
cmp_tool
Compare revisions
2b5151af684b38c03532d7862a3a954eb5e82f44 to bd0a466706e268960252580801ebce132a8d2e51
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
loidoltd15/cmp_tool
Select target project
No results found
bd0a466706e268960252580801ebce132a8d2e51
Select Git revision
Branches
cmp_tool-improvement
master
Tags
v0.05
v0.06
v0.07
v0.08
v0.09
v0.11
v0.12
v0.13
v0.14
v0.15
12 results
Swap
Target
loidoltd15/cmp_tool
Select target project
loidoltd15/cmp_tool
1 result
2b5151af684b38c03532d7862a3a954eb5e82f44
Select Git revision
Branches
cmp_tool-improvement
master
Tags
v0.05
v0.06
v0.07
v0.08
v0.09
v0.11
v0.12
v0.13
v0.14
v0.15
12 results
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (3)
Add fuzz_cmp_tool to clusterfuzzlite
· 5cee82ec
Dominik Loidolt
authored
3 months ago
5cee82ec
Initialize data
· da2b4f7e
Dominik Loidolt
authored
3 months ago
da2b4f7e
Fix formatted string for ANSI C
· bd0a4667
Dominik Loidolt
authored
3 months ago
bd0a4667
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.clusterfuzzlite/build.sh
+1
-1
1 addition, 1 deletion
.clusterfuzzlite/build.sh
programs/cmp_tool.c
+2
-2
2 additions, 2 deletions
programs/cmp_tool.c
test/fuzz/fuzz_cmp_tool.c
+1
-0
1 addition, 0 deletions
test/fuzz/fuzz_cmp_tool.c
with
4 additions
and
3 deletions
.clusterfuzzlite/build.sh
View file @
bd0a4667
...
@@ -16,7 +16,7 @@ meson setup "$BUILD" \
...
@@ -16,7 +16,7 @@ meson setup "$BUILD" \
-Db_lundef
=
false
-Db_lundef
=
false
# build fuzzers
# build fuzzers
ninja
-v
-C
"
$BUILD
"
test
/fuzz/
{
fuzz_round_trip,fuzz_compression,fuzz_decompression
}
ninja
-v
-C
"
$BUILD
"
test
/fuzz/
{
fuzz_round_trip,fuzz_compression,fuzz_decompression
,fuzz_cmp_tool
}
find
"
$BUILD
/test/fuzz"
-maxdepth
1
-executable
-type
f
-exec
cp
"{}"
"
$OUT
"
\;
find
"
$BUILD
/test/fuzz"
-maxdepth
1
-executable
-type
f
-exec
cp
"{}"
"
$OUT
"
\;
#TODO prepare corps
#TODO prepare corps
This diff is collapsed.
Click to expand it.
programs/cmp_tool.c
View file @
bd0a4667
...
@@ -541,8 +541,8 @@ int CMP_MAIN(int argc, char **argv)
...
@@ -541,8 +541,8 @@ int CMP_MAIN(int argc, char **argv)
if
(
size
<
0
)
if
(
size
<
0
)
goto
fail
;
goto
fail
;
if
(
size
<
(
ssize_t
)
model_size
)
{
if
(
size
<
(
ssize_t
)
model_size
)
{
fprintf
(
stderr
,
"%s: %s: Error: The files do not contain enough data. Expected: 0x%x, has 0x%
z
x.
\n
"
,
fprintf
(
stderr
,
"%s: %s: Error: The files do not contain enough data. Expected: 0x%x, has 0x%x.
\n
"
,
PROGRAM_NAME
,
model_file_name
,
model_size
,
size
);
PROGRAM_NAME
,
model_file_name
,
model_size
,
(
uint32_t
)
size
);
goto
fail
;
goto
fail
;
}
}
if
(
size
!=
(
ssize_t
)
model_size
)
{
if
(
size
!=
(
ssize_t
)
model_size
)
{
...
...
This diff is collapsed.
Click to expand it.
test/fuzz/fuzz_cmp_tool.c
View file @
bd0a4667
...
@@ -122,6 +122,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *src, size_t size)
...
@@ -122,6 +122,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *src, size_t size)
argv
=
FUZZ_malloc
(
sizeof
(
*
argv
)
*
MAX_ARG_COUNT
);
argv
=
FUZZ_malloc
(
sizeof
(
*
argv
)
*
MAX_ARG_COUNT
);
data
=
FUZZ_malloc
(
sizeof
(
*
data
)
*
MAX_ARG_COUNT
*
MAX_ARG_SIZE
);
data
=
FUZZ_malloc
(
sizeof
(
*
data
)
*
MAX_ARG_COUNT
*
MAX_ARG_SIZE
);
memset
(
data
,
0
,
sizeof
(
*
data
)
*
MAX_ARG_COUNT
*
MAX_ARG_SIZE
);
for
(
i
=
0
;
i
<
MAX_ARG_COUNT
;
i
++
)
for
(
i
=
0
;
i
<
MAX_ARG_COUNT
;
i
++
)
argv
[
i
]
=
&
data
[
i
*
MAX_ARG_SIZE
];
argv
[
i
]
=
&
data
[
i
*
MAX_ARG_SIZE
];
...
...
This diff is collapsed.
Click to expand it.