Commit Graph

89 Commits

Author SHA1 Message Date
Alex Groce d33caaf419 fix spacing 2018-09-01 17:23:50 -07:00
Alex Groce 69a84c7b68 fix C code according to pgoodman comments, annotate multi-byte reads 2018-09-01 17:22:40 -07:00
Alex Groce 91376842ba provide a mode where bytes read are made explicit 2018-09-01 11:27:22 -07:00
Alex Groce 6a9dadcf7a fix read of null 2018-07-30 22:09:39 -07:00
Alex Groce 0943f812a0 fix env read 2018-07-30 22:07:59 -07:00
Alex Groce 656ffa1b6d new way to specify which test 2018-07-30 22:05:56 -07:00
Alex Groce 9d8889e3f2 change name to external, let python konw about new level 2018-07-28 18:06:07 -07:00
Alex Groce 3fe716fbf0 fix extra brace 2018-07-28 12:41:14 -07:00
Alex Groce 8fe58fe48e log as external 2018-07-28 12:40:25 -07:00
Alex Groce d4e2225727 correct check for INFO to just look for INFO: 2018-07-28 12:36:54 -07:00
Alex Groce 1343cecfc2 correct check for INFO 2018-07-28 12:35:19 -07:00
Alex Groce 6418a5cd16 strnstr not available 2018-07-28 12:29:38 -07:00
Alex Groce 5e9c208c3b better logging 2018-07-28 12:27:07 -07:00
Alex Groce 78a99537c0 Also log fatals 2018-07-28 09:22:30 -07:00
Alex Groce 3a77882835 log only fuzzer info 2018-07-28 09:20:15 -07:00
Alex Groce e4db876959 try logging as fuzzer 2018-07-28 09:18:14 -07:00
Alex Groce e263f46696 fix logging level name 2018-07-28 09:14:38 -07:00
Alex Groce af6c5d8eac different approach 2018-07-28 09:11:34 -07:00
Alex Groce fcf53b25a5 try to silence logging 2018-07-28 08:58:45 -07:00
Alex Groce a55402fe8b fix output problem 2018-07-28 04:48:09 -07:00
Alex Groce dbc2adc360 try printf instead 2018-07-28 04:45:29 -07:00
Alex Groce 5529d560f3 fix stream 2018-07-28 04:41:59 -07:00
Alex Groce 7b2fec9b37 don't crash on failure/crash 2018-07-28 00:32:43 -07:00
Alex Groce c4f533d003 abort on failure or crash 2018-07-27 22:52:36 -07:00
Alex Groce 21a2153eb3 just skip warning for now, silence later 2018-07-27 22:24:55 -07:00
Alex Groce 9fa8c4bcf7 silence deepstate output, print libFuzzer output without warning 2018-07-27 22:13:21 -07:00
Alex Groce d95dcf65e3 change way memory is allocated 2018-07-27 21:27:28 -07:00
Alex Groce 519b61a7a9 Proper print format 2018-07-27 21:14:54 -07:00
Alex Groce fe3a417637 special version for libFuzzer that doesn't fork 2018-07-27 21:10:02 -07:00
Alex Groce 4066104189 debugging 2018-07-27 17:36:57 -07:00
Alex Groce 89ceafcea6 initialize options 2018-07-27 17:10:43 -07:00
Alex Groce 8c02b19371 move to .c 2018-07-27 16:58:58 -07:00
Alex Groce 090f1f60af Add abort option for fuzzing, way to run a set of generated tests 2018-07-26 11:24:46 -07:00
Alex Groce dd27ac8b95 hope fixes help order, and lets you know when test is default 2018-07-25 15:52:08 -07:00
Alex Groce b8fa722b56 Merge branch 'master' into add_input_test_file_option 2018-07-25 14:17:22 -07:00
Peter Goodman a2ec146657 Adds support for --help. 2018-07-25 15:34:07 -04:00
Alex Groce a9fef3157f add options for replay of single file 2018-07-25 12:33:53 -07:00
Peter Goodman 5c97e7aa14 Change how pointers are streamed. 2018-07-23 11:56:23 -04:00
Alex Groce 70dd92cb27 Fix message on abandon 2018-06-25 17:32:38 -07:00
Alex Groce f821097775 Log Error on abandon 2018-06-25 17:26:02 -07:00
Alex Groce 16e9255396 abandon, rather than fatal, on failed assumption, for fuzzing 2018-06-23 15:00:52 -07:00
khorben 7ce41d6bc7 Check malloc() for errors 2018-02-26 22:05:24 +01:00
Joe Ranweiler f39a89d059 Use consistent naming conventions 2018-02-21 19:32:26 -08:00
Joe Ranweiler 49fd41f5e1 Return bool from DeepState_Catch... functions 2018-02-21 19:31:45 -08:00
Joe Ranweiler 691cf24108 Remove usage of old internal globals
- Use `DeepState_CurrentTestRun` global shared struct
- Allocate memory for the above in `DeepState_Setup()`
- Update `DeepState_Catch...` functions to map enums to status ints
2018-02-21 19:22:20 -08:00
Joe Ranweiler f07fd1cab7 Split up mapping and init of current test run globals
- Use `DeepState_AllocCurrentTestRun()` to map memory in take-over setup
- Add error handling for `mmap()` call
- Unify init of test globals via `DeepState_InitCurrentTestRun()`
2018-02-21 19:09:01 -08:00
Joe Ranweiler 4f711da986 Use DeepState_CurrentTestRun in take-over test case replays
- Map shared memory for `DeepState_CurrentTestRun`
- For non-crashing forked test runs, inspect the above to figure out
  what happened. In particular, this supports `CHECK` and soft failures.
2018-02-21 18:52:23 -08:00
Joe Ranweiler d4dc9eaa01 Add struct for info about single test runs, update in global setters
Instead of exit codes, we will use the global instance of this (shared
with a parent process) to determine the result of forked test runs.
2018-02-21 18:49:42 -08:00
Joe Ranweiler 9d47f21f5a Hide mutation of test globals behind internal functions 2018-02-21 17:17:43 -08:00
Joe Ranweiler 341c2da0f8 Fix type of --take_over flag 2018-02-21 16:56:12 -08:00