mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-20 14:06:54 +02:00
Fix bounds check bug.
This commit is contained in:
parent
346d4b572b
commit
ecb09aa2e1
2 changed files with 2 additions and 2 deletions
|
@ -151,7 +151,7 @@ public:
|
|||
{
|
||||
if (likely(_s < C))
|
||||
new(reinterpret_cast<T *>(_m) + _s++) T(v);
|
||||
throw Utils::OutOfRangeException;
|
||||
else throw Utils::OutOfRangeException;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -430,7 +430,7 @@ extern "C" const char *ZTT_general()
|
|||
}
|
||||
test.clear();
|
||||
test2.clear();
|
||||
if (cnt != (long)test.size()) {
|
||||
if ((cnt != (long)test.size()) && (cnt != 0)) {
|
||||
ZT_T_PRINTF("FAILED (expected 0 objects, got %lu (5))" ZT_EOL_S,cnt);
|
||||
return "FCV object life cycle test failed (5)";
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue