1. mst
  2. ooo340

Commits

s...@openoffice.org  committed 8b54b81

sb137: #i115716# marshalString missed null-termination

  • Participants
  • Parent commits a83c735
  • Branches default

Comments (0)

Files changed (1)

File basic/source/runtime/dllmgr.cxx

View file
  • Ignore whitespace
         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;