diff --git a/src/win/core.c b/src/win/core.c index b55c3cea..d272bf57 100644 --- a/src/win/core.c +++ b/src/win/core.c @@ -67,6 +67,9 @@ static void uv_loop_init(uv_loop_t* loop) { loop->refs = 0; + /* To prevent uninitialized memory access, loop->time must be intialized */ + /* to zero before calling uv_update_time for the first time. */ + loop->time = 0; uv_update_time(loop); loop->pending_reqs_tail = NULL;