diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-11-17 17:34:13 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-11-17 20:46:33 +0100 |
commit | 10be6512107891b5bd4f1055fac3dcd9fe3b784c (patch) | |
tree | 9081b0c68dbe5b9d549c3f1a9b2fa20ed1fa94de /odk/source | |
parent | 25a6ed62682d8471e6605801205e2e56491f5929 (diff) |
cid#706181 Use of untrusted string value
use an annotation here and add one to the windows equivalent
Change-Id: Ife54949c2e89ae606d7931be82807db4bbb132dc
Reviewed-on: https://gerrit.libreoffice.org/83024
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'odk/source')
-rw-r--r-- | odk/source/unoapploader/unx/unoapploader.c | 1 | ||||
-rw-r--r-- | odk/source/unoapploader/win/unoapploader.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/odk/source/unoapploader/unx/unoapploader.c b/odk/source/unoapploader/unx/unoapploader.c index f0e33f817021..3a35599292be 100644 --- a/odk/source/unoapploader/unx/unoapploader.c +++ b/odk/source/unoapploader/unx/unoapploader.c @@ -200,6 +200,7 @@ int main( int argc, char *argv[] ) strcat( envstr, PATHSEPARATOR ); strcat( envstr, value ); } + /* coverity[tainted_data : FALSE] */ putenv( envstr ); } else diff --git a/odk/source/unoapploader/win/unoapploader.c b/odk/source/unoapploader/win/unoapploader.c index 455f4689adad..4baa3ddda8c5 100644 --- a/odk/source/unoapploader/win/unoapploader.c +++ b/odk/source/unoapploader/win/unoapploader.c @@ -218,6 +218,7 @@ int WINAPI wWinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, wcscat( envstr, PATHSEPARATOR ); wcscat( envstr, value ); } + /* coverity[tainted_data : FALSE] */ _wputenv( envstr ); free( envstr ); free( path ); |