Kaydet (Commit) a3b960fe authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1437959 Copy into fixed size buffer

Change-Id: I5578e195c834b2a3ceacd5c528f58d1d03502c2e
Reviewed-on: https://gerrit.libreoffice.org/57461
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 623de483
......@@ -313,23 +313,22 @@ int main( int argc, char* argv[] )
mode = argv[arg++];
char user_url[8046];;
strcpy(user_url, "file:///");
strcat(user_url, argv[1]);
strcat(user_url, "../user");
std::string user_url("file:///");
if (pre_init)
setenv("LOK_WHITELIST_LANGUAGES", "en_US", 0);
// coverity[tainted_string] - build time test tool
lok_preinit(argv[1], user_url);
lok_preinit(argv[1], user_url.c_str());
// coverity[tainted_string] - build time test tool
Office *pOffice = lok_cpp_init(argv[1], user_url);
Office *pOffice = lok_cpp_init(argv[1], user_url.c_str());
if (pOffice == nullptr)
fprintf(stderr, "Failed to initialize Office from %s\n", argv[1]);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment