Skip to content

Commit

Permalink
Clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
shargon committed Nov 27, 2019
1 parent ca6a9c2 commit 29c1e83
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/TuringMachine.Core/Fuzzer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,11 @@ public static void Run(Action<Stream> action, FuzzerRunArgs args = null)
// Fuzz

var cancel = new CancelEventArgs();
ConsoleCancelEventHandler handler = (o, s) =>
var handler = new ConsoleCancelEventHandler((o, s) =>
{
cancel.Cancel = true;
s.Cancel = true;
};
});
Console.CancelKeyPress += handler;

// Ensure data
Expand Down
4 changes: 2 additions & 2 deletions src/TuringMachine.Core/Fuzzers/FuzzerClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -332,9 +332,9 @@ public FuzzerLog Execute(Action<Stream> action, FuzzingStream stream)
errorMsg += "\nExtraInformation: " + stream.ExtraLogInformation;
}

byte[] zip = new byte[0];
var result = FuzzerError.EExplotationResult.Unknown;
var zip = new byte[0];
var error = FuzzerError.EFuzzingErrorType.Fail;
var result = FuzzerError.EExplotationResult.Unknown;
var errorId = new Guid(HashHelper.Md5(Encoding.UTF8.GetBytes(errorMsg)));

if (e is AggregateException agg)
Expand Down

0 comments on commit 29c1e83

Please sign in to comment.