]> granicus.if.org Git - gc/commit
Check traceable_allocator.allocate result before dereference in test_cpp
authorIvan Maidanski <ivmai@mail.ru>
Wed, 24 Oct 2012 03:57:45 +0000 (07:57 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 24 Oct 2012 08:58:09 +0000 (12:58 +0400)
commit7edcba978ab71e11e5f5451cb280316e5325681a
treedb2198c13f187598246c4a5c73dffa835285aad0
parenta12267ea336cd7f14e725b1162dad4ec47c278ab
Check traceable_allocator.allocate result before dereference in test_cpp

* tests/test_cpp.cc (main): Check "xptr" value (obtained from
traceable_allocator.allocate) for NULL (and exit with the
corresponding message in that case) before dereferencing it.
tests/test_cpp.cc