mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-18 23:28:23 +00:00
Fix: (1) Windows stack overflow due to buffer too large in peer deserialize, (2) clean up some other stuff seen during debugging and reduce the sizes of some buffers due to Windows small stack size, (3) remove a redundant try/catch.
This commit is contained in:
@ -58,7 +58,12 @@ class AntiRecursion
|
||||
public:
|
||||
AntiRecursion()
|
||||
{
|
||||
memset(_history,0,sizeof(_history));
|
||||
for(int i=0;i<ZT_ANTIRECURSION_HISTORY_SIZE;++i) {
|
||||
_history[i].tail[0] = 0;
|
||||
_history[i].tail[1] = 0;
|
||||
_history[i].tail[2] = 0;
|
||||
_history[i].tail[3] = 0;
|
||||
}
|
||||
_ptr = 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user