From 497b584a59859775ca9c44bb287e88a6bef0ea36 Mon Sep 17 00:00:00 2001 From: Snaipe Date: Sun, 17 Jan 2016 20:44:13 +0100 Subject: [PATCH] Fixed crashes on windows due to null pipe dereferencing --- src/compat/process.c | 3 --- src/compat/process.h | 1 - 2 files changed, 4 deletions(-) diff --git a/src/compat/process.c b/src/compat/process.c index abdb090..8c4431a 100644 --- a/src/compat/process.c +++ b/src/compat/process.c @@ -103,7 +103,6 @@ struct full_context { struct criterion_suite suite; struct criterion_test_extra_data suite_data; cr_worker_func func; - struct pipe_handle pipe; struct test_single_param param; HANDLE sync; DWORD extra_size; @@ -281,7 +280,6 @@ int resume_child(void) { .test = &local_ctx.test, .suite = &local_ctx.suite, .func = local_ctx.func, - .pipe = &local_ctx.pipe, .param = param, }; @@ -359,7 +357,6 @@ s_proc_handle *fork_process() { .test_data = *g_worker_context.test->data, .suite = *g_worker_context.suite, .func = g_worker_context.func, - .pipe = *g_worker_context.pipe, .sync = sync, }; diff --git a/src/compat/process.h b/src/compat/process.h index 193c12b..a0baae1 100644 --- a/src/compat/process.h +++ b/src/compat/process.h @@ -43,7 +43,6 @@ struct worker_context { struct criterion_test *test; struct criterion_suite *suite; cr_worker_func func; - struct pipe_handle *pipe; struct test_single_param *param; };