[Libreoffice-commits] core.git: solenv/bin
Mike Kaganski (via logerrit)
logerrit at kemper.freedesktop.org
Mon Apr 1 02:07:57 UTC 2019
solenv/bin/concat-deps.c | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 029e89537c86da25c3328623fae94960fcfeb8a7
Author: Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Mon Apr 1 01:59:50 2019 +0300
Commit: Mike Kaganski <mike.kaganski at collabora.com>
CommitDate: Mon Apr 1 04:07:30 2019 +0200
tdf#120703 PVS: Silence V575 warnings
V575 The potential null pointer is passed into 'strcpy' function.
Change-Id: Iba2cbf1c94f1744b4e34c0f20d9dc030d52f5d9f
Reviewed-on: https://gerrit.libreoffice.org/70024
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>
diff --git a/solenv/bin/concat-deps.c b/solenv/bin/concat-deps.c
index 2a81f89da97c..8f1ea492b9cd 100644
--- a/solenv/bin/concat-deps.c
+++ b/solenv/bin/concat-deps.c
@@ -1146,6 +1146,7 @@ int main(int argc, char** argv)
return 1;
work_dir_len = strlen(work_dir);
phony_content_buffer = malloc(PHONY_TARGET_BUFFER);
+ assert(phony_content_buffer); // Don't handle OOM conditions
strcpy(phony_content_buffer, work_dir);
phony_content_buffer[work_dir_len] = '/';
More information about the Libreoffice-commits
mailing list