forked from grpc/grpc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fuzzing] Fix use-after-free in resolver_fuzzer (grpc#33553)
In FuzzingDNSResolver, capturing the engine as raw pointers in the lambda functions instead of capturing the `this` pointer. By the time the lambda is ran, the FuzzingDNSResolver might already be destroyed but the engine should still be alive. <!-- 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. -->
- Loading branch information
Showing
3 changed files
with
38 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
...ers/event_engine_client_channel_resolver/resolver_fuzzer_corpus/testcase-5295287010656256
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
channel_args { | ||
args { | ||
key: "grpc.dns_enable_srv_queries" | ||
i: 1 | ||
} | ||
} | ||
should_orphan_at_step: DURING_LOOKUP_SRV |
7 changes: 7 additions & 0 deletions
7
...ers/event_engine_client_channel_resolver/resolver_fuzzer_corpus/testcase-5570512809951232
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
channel_args { | ||
args { | ||
key: "grpc.service_config_disable_resolution" | ||
i: 0 | ||
} | ||
} | ||
should_orphan_at_step: DURING_LOOKUP_TXT |