Fixup minor use after free issues, and improper mutex usage in meshrepo. Also fixed some compiler warnings.

This commit is contained in:
Shyotl
2020-03-15 00:46:57 -05:00
parent d2d172f6ec
commit 26976b715d
6 changed files with 35 additions and 29 deletions

View File

@@ -936,7 +936,7 @@ static const char *llsd_dump(const LLSD &llsd, bool useXMLFormat)
out << LLSDNotationStreamer(llsd);
out_string = out.str();
}
int len = out_string.length();
size_t len = out_string.length();
sStorage = new char[len + 1];
memcpy(sStorage, out_string.c_str(), len);
sStorage[len] = '\0';