Fix fuzzer bug b/309756937 (#35279)

Built on #35278, which should be landed first

Always fail parsing when `grpclb_client_stats` is included in headers -- it's a meaningless value and the only reason to include it would be some sort of attack.

Closes #35279

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/35279 from ctiller:fuzz-309756937 545448c4de
PiperOrigin-RevId: 590745978
This commit is contained in:
Craig Tiller 2023-12-14 00:20:03 +00:00
parent 33a4c8c994
commit d00582bd82
6 changed files with 6 additions and 5 deletions

View File

@ -410,7 +410,8 @@ struct GrpcLbClientStatsMetadata {
static const char* DisplayMemento(MementoType) {
return "<internal-lb-stats>";
}
static MementoType ParseMemento(Slice, bool, MetadataParseErrorFn) {
static MementoType ParseMemento(Slice, bool, MetadataParseErrorFn error) {
error("not a valid value for grpclb_client_stats", Slice());
return nullptr;
}
};

View File

@ -22,4 +22,4 @@
@property(strong, nonatomic) UIWindow* window;
@end
@end

View File

@ -24,4 +24,4 @@
@implementation AppDelegate
@end
@end

View File

@ -38,4 +38,4 @@
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
</dict>
</plist>
</plist>

View File

@ -23,4 +23,4 @@ int main(int argc, char* argv[]) {
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}
}