Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
31e32445
You need to sign in or sign up before continuing.
Commit
31e32445
authored
8 years ago
by
David Garcia Quintas
Browse files
Options
Downloads
Patches
Plain Diff
Prevent nanopb fuzzers from spamming logs
parent
942c2648
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
test/core/nanopb/fuzzer_response.c
+3
-0
3 additions, 0 deletions
test/core/nanopb/fuzzer_response.c
test/core/nanopb/fuzzer_serverlist.c
+3
-0
3 additions, 0 deletions
test/core/nanopb/fuzzer_serverlist.c
with
6 additions
and
0 deletions
test/core/nanopb/fuzzer_response.c
+
3
−
0
View file @
31e32445
...
@@ -41,7 +41,10 @@
...
@@ -41,7 +41,10 @@
bool
squelch
=
true
;
bool
squelch
=
true
;
bool
leak_check
=
true
;
bool
leak_check
=
true
;
static
void
dont_log
(
gpr_log_func_args
*
args
)
{}
int
LLVMFuzzerTestOneInput
(
const
uint8_t
*
data
,
size_t
size
)
{
int
LLVMFuzzerTestOneInput
(
const
uint8_t
*
data
,
size_t
size
)
{
if
(
squelch
)
gpr_set_log_function
(
dont_log
);
gpr_slice
slice
=
gpr_slice_from_copied_buffer
((
const
char
*
)
data
,
size
);
gpr_slice
slice
=
gpr_slice_from_copied_buffer
((
const
char
*
)
data
,
size
);
grpc_grpclb_initial_response
*
response
;
grpc_grpclb_initial_response
*
response
;
if
((
response
=
grpc_grpclb_initial_response_parse
(
slice
)))
{
if
((
response
=
grpc_grpclb_initial_response_parse
(
slice
)))
{
...
...
This diff is collapsed.
Click to expand it.
test/core/nanopb/fuzzer_serverlist.c
+
3
−
0
View file @
31e32445
...
@@ -41,7 +41,10 @@
...
@@ -41,7 +41,10 @@
bool
squelch
=
true
;
bool
squelch
=
true
;
bool
leak_check
=
true
;
bool
leak_check
=
true
;
static
void
dont_log
(
gpr_log_func_args
*
args
)
{}
int
LLVMFuzzerTestOneInput
(
const
uint8_t
*
data
,
size_t
size
)
{
int
LLVMFuzzerTestOneInput
(
const
uint8_t
*
data
,
size_t
size
)
{
if
(
squelch
)
gpr_set_log_function
(
dont_log
);
gpr_slice
slice
=
gpr_slice_from_copied_buffer
((
const
char
*
)
data
,
size
);
gpr_slice
slice
=
gpr_slice_from_copied_buffer
((
const
char
*
)
data
,
size
);
grpc_grpclb_serverlist
*
serverlist
;
grpc_grpclb_serverlist
*
serverlist
;
if
((
serverlist
=
grpc_grpclb_response_parse_serverlist
(
slice
)))
{
if
((
serverlist
=
grpc_grpclb_response_parse_serverlist
(
slice
)))
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment