BIND 10 master, updated. a5b09a49b489e76dcac1d9b6b4f0caf1c5d66d70 [master} Pass ULONG_MAX to MemorySegment->allocate()
BIND 10 source code commits
bind10-changes at lists.isc.org
Sun Jul 15 19:26:58 UTC 2012
The branch, master has been updated
via a5b09a49b489e76dcac1d9b6b4f0caf1c5d66d70 (commit)
from af3a7eee9a18263f41e0ea8b5f6e0e3e49c11714 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit a5b09a49b489e76dcac1d9b6b4f0caf1c5d66d70
Author: Mukund Sivaraman <muks at isc.org>
Date: Mon Jul 16 00:56:20 2012 +0530
[master} Pass ULONG_MAX to MemorySegment->allocate()
This fixes a build failure on the build bots.
-----------------------------------------------------------------------
Summary of changes:
.../util/tests/memory_segment_local_unittest.cc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
-----------------------------------------------------------------------
diff --git a/src/lib/util/tests/memory_segment_local_unittest.cc b/src/lib/util/tests/memory_segment_local_unittest.cc
index a18a9b2..64b7292 100644
--- a/src/lib/util/tests/memory_segment_local_unittest.cc
+++ b/src/lib/util/tests/memory_segment_local_unittest.cc
@@ -16,6 +16,7 @@
#include <exceptions/exceptions.h>
#include <gtest/gtest.h>
#include <memory>
+#include <limits.h>
using namespace std;
using namespace isc::util;
@@ -56,7 +57,7 @@ TEST(MemorySegmentLocal, TestLocal) {
TEST(MemorySegmentLocal, TestTooMuchMemory) {
auto_ptr<MemorySegment> segment(new MemorySegmentLocal());
- EXPECT_THROW(segment->allocate(0x7fffffffffffffff), bad_alloc);
+ EXPECT_THROW(segment->allocate(ULONG_MAX), bad_alloc);
}
TEST(MemorySegmentLocal, TestBadDeallocate) {
More information about the bind10-changes
mailing list