Commits

Anonymous committed 8b54b81

sb137: #i115716# marshalString missed null-termination

Comments (0)

Files changed (1)

basic/source/runtime/dllmgr.cxx

         return e;
     }
     std::vector< char > * blob = data.newBlob();
-    blob->insert(blob->begin(), str.getStr(), str.getStr() + str.getLength());
+    blob->insert(
+        blob->begin(), str.getStr(), str.getStr() + str.getLength() + 1);
     *buffer = address(*blob);
     data.unmarshalStrings.push_back(StringData(variable, *buffer, special));
     return ERRCODE_NONE;