We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dad575b commit 57928f4Copy full SHA for 57928f4
src/libfuzzer/libfuzzer_macro.cc
@@ -235,7 +235,7 @@ void RegisterPostProcessor(
235
const protobuf::Descriptor* desc,
236
std::function<void(protobuf::Message* message, unsigned int seed)>
237
callback) {
238
- GetMutator()->RegisterPostProcessor(desc, callback);
+ GetMutator()->RegisterPostProcessor(desc, std::move(callback));
239
}
240
241
} // namespace libfuzzer
src/mutator.cc
@@ -502,7 +502,7 @@ class PostProcessing {
502
Run(It->second.get(), max_depth);
503
std::string value;
504
It->second->SerializePartialToString(&value);
505
- *any->mutable_value() = value;
+ *any->mutable_value() = std::move(value);
506
507
508
0 commit comments