<p>On size 32 tree when calling co_tree_set_str<br>
Does not occur with size 16.</p>

<p>Specific input:<br>
  TestString1 = co_str8_create("1TESTVALUE1", 12, 0);</p>

<p>ret = co_tree_insert(Tree32, "1TESTKEY1", 9, TestString1);<br>
  ASSERT_EQ(1, ret);</p>

<p>ret = co_tree_set_str(Tree32, "1TESTKEY1", 9, "REPLACESTRING", 8);<br>
  ASSERT_EQ(1, ret);</p>

<p>Valgrind output:<br>
==8934== Process terminating with default action of signal 11 (SIGSEGV)<br>
==8934==  Access not within mapped region at address 0x15<br>
==8934==    at 0x4C2E893: memcpy@GLIBC_2.2.5 (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)<br>
==8934==    by 0x4E4BF12: <em>co</em>node_set_str (tree.c:364)<br>
==8934==    by 0x4E4C3A6: co_tree_set_str (tree.c:403)<br>
==8934==    by 0x4383E5: TreeTest::UpdateObj() (tree.cpp:173)<br>
==8934==    by 0x438791: TreeTest_TreeUpdateTest_Test::TestBody() (tree.cpp:192)<br>
==8934==    by 0x45DD87: void testing::internal::HandleSehExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::<em>)(), char const</em>) (in /home/gj/src/commotiond/build/tests/commotion_test)<br>
==8934==    by 0x458F77: void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::<em>)(), char const</em>) (in /home/gj/src/commotiond/build/tests/commotion_test)<br>
==8934==    by 0x440304: testing::Test::Run() (in /home/gj/src/commotiond/build/tests/commotion_test)<br>
==8934==    by 0x440AE1: testing::TestInfo::Run() (in /home/gj/src/commotiond/build/tests/commotion_test)<br>
==8934==    by 0x44117B: testing::TestCase::Run() (in /home/gj/src/commotiond/build/tests/commotion_test)<br>
==8934==    by 0x447941: testing::internal::UnitTestImpl::RunAllTests() (in /home/gj/src/commotiond/build/tests/commotion_test)<br>
==8934==    by 0x45F165: bool testing::internal::HandleSehExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::<em>)(), char const</em>) (in /home/gj/src/commotiond/build/tests/commotion_test)<br>
==8934==  If you believe this happened as a result of a stack<br>
==8934==  overflow in your program's main thread (unlikely but<br>
==8934==  possible), you can try to increase the size of the<br>
==8934==  main thread stack using the --main-stacksize= flag.<br>
==8934==  The main thread stack size used in this run was 8388608.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href='https://github.com/opentechinstitute/commotiond/issues/90'>view it on GitHub</a>.<img src='https://github.com/notifications/beacon/3074564__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcwNzU5MjExNCwiZGF0YSI6eyJpZCI6MjUzNTA2OTN9fQ==--00b3b6da98fe2c7f1d6ffc65b4a3f9b9fb933319.gif' height='1' width='1'></p>