Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2889)

Unified Diff: tools/ipc_fuzzer/fuzzer/fuzzer.cc

Issue 2108013002: [IPC fuzzer] Add a missing case when generating content::SyntheticGesturePacket. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/ipc_fuzzer/fuzzer/fuzzer.cc
diff --git a/tools/ipc_fuzzer/fuzzer/fuzzer.cc b/tools/ipc_fuzzer/fuzzer/fuzzer.cc
index ad16379e475c200a4cb0a68338290378e8b89163..27cde12a58c7f55400446a67d8baa7a81610ef6a 100644
--- a/tools/ipc_fuzzer/fuzzer/fuzzer.cc
+++ b/tools/ipc_fuzzer/fuzzer/fuzzer.cc
@@ -976,6 +976,23 @@ struct FuzzTraits<content::SyntheticGesturePacket> {
gesture_params.reset(params);
break;
}
+ case content::SyntheticGestureParams::GestureType::POINTER_ACTION: {
+ content::SyntheticPointerActionParams::PointerActionType action_type;
+ gfx::PointF position;
+ int index;
+ if (!FuzzParam(&action_type, fuzzer))
+ return false;
+ if (!FuzzParam(&position, fuzzer))
+ return false;
+ if (!FuzzParam(&index, fuzzer))
+ return false;
+ content::SyntheticPointerActionParams* params =
+ new content::SyntheticPointerActionParams(action_type);
+ params->set_position(position);
+ params->set_index(index);
+ gesture_params.reset(params);
+ break;
+ }
}
p->set_gesture_params(std::move(gesture_params));
return true;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698