summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-10-07 13:22:56 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-10-07 13:44:04 +0100
commit967ea727c7f2c954ee8ac33a888718d8dac11837 (patch)
tree4410d572dfcbd6a594ffec8750223a27e470b58e
parenta614568c4356fe37ba132972e6f3649d606e2c9a (diff)
afl-eventtesting: lets ditch the key repeat and timestamp fields
time stamp doesn't matter apparently for keyboard events so ditching it gives less surface area to fuzz repeat showed some interesting effects, but mostly just allows vast paragraphs to be generated causing timeout hangs which isn't what I'm super interested in right now. Change-Id: I955b91745a26d5044f0d53acd3fda0a160e53855
-rw-r--r--vcl/source/app/svapp.cxx4
-rw-r--r--vcl/workben/README.eventtesting3
-rw-r--r--vcl/workben/eventtestingbin140 -> 28 bytes
3 files changed, 3 insertions, 4 deletions
diff --git a/vcl/source/app/svapp.cxx b/vcl/source/app/svapp.cxx
index 7fb612bed1d9..c797d00b870d 100644
--- a/vcl/source/app/svapp.cxx
+++ b/vcl/source/app/svapp.cxx
@@ -336,10 +336,10 @@ namespace
return false;
SalKeyEvent aKeyEvent;
- rStream.ReadUInt64(aKeyEvent.mnTime);
+ aKeyEvent.mnTime = 0;
rStream.ReadUInt16(aKeyEvent.mnCode);
rStream.ReadUInt16(aKeyEvent.mnCharCode);
- rStream.ReadUInt16(aKeyEvent.mnRepeat);
+ aKeyEvent.mnRepeat = 0;
if (!rStream.good())
return false;
diff --git a/vcl/workben/README.eventtesting b/vcl/workben/README.eventtesting
index 0336f2270d2e..79472cd57f25 100644
--- a/vcl/workben/README.eventtesting
+++ b/vcl/workben/README.eventtesting
@@ -2,8 +2,7 @@ Notes on experimental afl driven ui fuzzing
only keyboard events for now
-vcl/workben/eventtesting is just serialized "helloworld" keystrokes to get
-things started
+vcl/workben/eventtesting is just serialized "hello" + ctrl+a + ctrl+b keystrokes to get things started
currently an arbitrary limit of 10 keystrokes before application quits in
order to initially explore that shallow space
diff --git a/vcl/workben/eventtesting b/vcl/workben/eventtesting
index 363260a025d7..b85a20356f1d 100644
--- a/vcl/workben/eventtesting
+++ b/vcl/workben/eventtesting
Binary files differ