Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fuzzing] Fix fuzzer found bug #33291

Merged
merged 4 commits into from May 31, 2023
Merged

[fuzzing] Fix fuzzer found bug #33291

merged 4 commits into from May 31, 2023

Conversation

ctiller
Copy link
Member

@ctiller ctiller commented May 31, 2023

We had an infinite recursion in our tracer parsing code... probably not a biggy, but it was blocking the fuzzers so fixing.

@ctiller ctiller requested a review from markdroth May 31, 2023 18:36
@ctiller ctiller added the release notes: no Indicates if PR should not be in release notes label May 31, 2023
grpc_core::TraceFlagList::Set(strings[i] + 1, false);
namespace {
void ParseTracers(absl::string_view tracers) {
for (auto s : absl::StrSplit(tracers, ',')) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can use the absl::SkipWhitespace() predicate in absl::StrSplit() here, which will eliminate the need for the next two lines.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll send a follow-up applying that a bit more widely!

@ctiller ctiller merged commit 2892b24 into grpc:master May 31, 2023
57 of 65 checks passed
@copybara-service copybara-service bot added the imported Specifies if the PR has been imported to the internal repository label May 31, 2023
eugeneo pushed a commit to eugeneo/grpc that referenced this pull request Jun 1, 2023
We had an infinite recursion in our tracer parsing code... probably not
a biggy, but it was blocking the fuzzers so fixing.

<!--

If you know who should review your pull request, please assign it to
that
person, otherwise the pull request would get assigned randomly.

If your pull request is for a specific language, please add the
appropriate
lang label.

-->
mario-vimal pushed a commit to mario-vimal/grpc that referenced this pull request Jun 15, 2023
We had an infinite recursion in our tracer parsing code... probably not
a biggy, but it was blocking the fuzzers so fixing.

<!--

If you know who should review your pull request, please assign it to
that
person, otherwise the pull request would get assigned randomly.

If your pull request is for a specific language, please add the
appropriate
lang label.

-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bloat/none imported Specifies if the PR has been imported to the internal repository lang/core per-call-memory/neutral per-channel-memory/neutral release notes: no Indicates if PR should not be in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants