[tor-commits] [tor/master] Check thread count for negative; realloc->reallocarray