New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compiler warnings #1760

Open
haraldg opened this Issue Dec 28, 2017 · 4 comments

Comments

3 participants
@haraldg

haraldg commented Dec 28, 2017

I submitted a PR for 0.8.21 to openwrt. However there are some compiler warnings - probably easy to fix things like forgotten header files. Please have a look at https://friends.ccbib.org/lambda/build.err

@markus2330 markus2330 added this to the 0.8.22 milestone Dec 28, 2017

@markus2330

This comment has been minimized.

Show comment
Hide comment
@markus2330

markus2330 Dec 28, 2017

Contributor

Thank you for the submission! Can you post a link to the PR for reference?

We'll take a look at the compiler warnings for the next release, I added the Milestone.

Contributor

markus2330 commented Dec 28, 2017

Thank you for the submission! Can you post a link to the PR for reference?

We'll take a look at the compiler warnings for the next release, I added the Milestone.

@haraldg

This comment has been minimized.

Show comment
Hide comment

haraldg commented Dec 28, 2017

sanssecours added a commit to sanssecours/elektra that referenced this issue Dec 28, 2017

Camel: Fix incorrect format strings
This commit fixes part of issue ElektraInitiative#1760.

sanssecours added a commit to sanssecours/elektra that referenced this issue Dec 28, 2017

mINI: Fix incorrect format strings
This commit fixes part of issue ElektraInitiative#1760.

sanssecours added a commit to sanssecours/elektra that referenced this issue Dec 29, 2017

Camel: Fix incorrect format strings
This commit fixes part of issue ElektraInitiative#1760.

sanssecours added a commit to sanssecours/elektra that referenced this issue Dec 29, 2017

mINI: Fix incorrect format strings
This commit fixes part of issue ElektraInitiative#1760.

sanssecours added a commit to sanssecours/elektra that referenced this issue Dec 29, 2017

Camel: Fix incorrect format strings
This commit fixes part of issue ElektraInitiative#1760.

sanssecours added a commit to sanssecours/elektra that referenced this issue Dec 29, 2017

mINI: Fix incorrect format strings
This commit fixes part of issue ElektraInitiative#1760.

sanssecours added a commit to sanssecours/elektra that referenced this issue Dec 29, 2017

Camel: Fix incorrect format strings
This commit fixes part of issue ElektraInitiative#1760.

sanssecours added a commit to sanssecours/elektra that referenced this issue Dec 29, 2017

mINI: Fix incorrect format strings
This commit fixes part of issue ElektraInitiative#1760.

sanssecours added a commit to sanssecours/elektra that referenced this issue Dec 31, 2017

Camel: Fix incorrect format strings
This commit fixes part of issue ElektraInitiative#1760.

sanssecours added a commit to sanssecours/elektra that referenced this issue Dec 31, 2017

mINI: Fix incorrect format strings
This commit fixes part of issue ElektraInitiative#1760.

sanssecours added a commit to sanssecours/elektra that referenced this issue Dec 31, 2017

Camel: Fix incorrect format strings
This commit fixes part of issue ElektraInitiative#1760.

sanssecours added a commit to sanssecours/elektra that referenced this issue Dec 31, 2017

mINI: Fix incorrect format strings
This commit fixes part of issue ElektraInitiative#1760.
@markus2330

This comment has been minimized.

Show comment
Hide comment
@markus2330

markus2330 Feb 25, 2018

Contributor

We tried to fix the compiler warnings. The fixes are now in master and will be part of the next release.

Without compiling it for OpenWRT, however, we cannot verify if the warnings are really gone. So please give us feedback about warnings when you compile the next release.

Contributor

markus2330 commented Feb 25, 2018

We tried to fix the compiler warnings. The fixes are now in master and will be part of the next release.

Without compiling it for OpenWRT, however, we cannot verify if the warnings are really gone. So please give us feedback about warnings when you compile the next release.

@markus2330 markus2330 modified the milestones: 0.8.22, 0.8.23 Feb 25, 2018

@markus2330 markus2330 added this to to fix in lcdproc Mar 31, 2018

@markus2330 markus2330 removed this from the 0.8.23 milestone May 10, 2018

markus2330 added a commit that referenced this issue May 10, 2018

@petermax2

This comment has been minimized.

Show comment
Hide comment
@petermax2

petermax2 May 19, 2018

Member

gcc -Wstringop-truncation (version gcc (GCC) 8.1.1 20180502 (Red Hat 8.1.1-1)) reports several compiler warnings on Fedora 28.

However, I am not sure how relevant these warnings are.

[pnirschl@peterspc build]$ LANG=en_US.UTF-8 ninja
[33/747] Building C object src/plugins/crypto/CMakeFiles/elektra-crypto_gcrypt-objects.dir/gpg.c.o
In function ‘getGpgBinary’,
    inlined from ‘libelektra_crypto_gcrypt_LTX_elektraPlugingpgCall’ at ../src/plugins/crypto/gpg.c:736:6:
../src/plugins/crypto/gpg.c:216:4: warning: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
    strncpy (*gpgBin, configPath, configPathLen);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/plugins/crypto/gpg.c: In function ‘libelektra_crypto_gcrypt_LTX_elektraPlugingpgCall’:
../src/plugins/crypto/gpg.c:207:32: note: length computed here
const size_t configPathLen = strlen (configPath);
                                ^~~~~~~~~~~~~~~~~~~
[40/747] Building C object src/plugins/crypto/CMakeFiles/elektra-crypto_openssl-objects.dir/gpg.c.o
In function ‘getGpgBinary’,
    inlined from ‘libelektra_crypto_openssl_LTX_elektraPlugingpgCall’ at ../src/plugins/crypto/gpg.c:736:6:
../src/plugins/crypto/gpg.c:216:4: warning: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
    strncpy (*gpgBin, configPath, configPathLen);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/plugins/crypto/gpg.c: In function ‘libelektra_crypto_openssl_LTX_elektraPlugingpgCall’:
../src/plugins/crypto/gpg.c:207:32: note: length computed here
const size_t configPathLen = strlen (configPath);
                                ^~~~~~~~~~~~~~~~~~~
[46/747] Building C object src/plugins/crypto/CMakeFiles/elektra-crypto_botan-objects.dir/gpg.c.o
In function ‘getGpgBinary’,
    inlined from ‘libelektra_crypto_botan_LTX_elektraPlugingpgCall’ at ../src/plugins/crypto/gpg.c:736:6:
../src/plugins/crypto/gpg.c:216:4: warning: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
    strncpy (*gpgBin, configPath, configPathLen);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/plugins/crypto/gpg.c: In function ‘libelektra_crypto_botan_LTX_elektraPlugingpgCall’:
../src/plugins/crypto/gpg.c:207:32: note: length computed here
const size_t configPathLen = strlen (configPath);
                                ^~~~~~~~~~~~~~~~~~~
[55/747] Building C object src/plugins/ini/CMakeFiles/elektra-ini-objects.dir/inih-r29/inih.c.o
In function ‘strncpy0’,
    inlined from ‘ini_parse_file’ at ../src/plugins/ini/inih-r29/inih.c:195:6:
../src/plugins/ini/inih-r29/inih.c:64:2: warning: ‘strncpy’ specified bound 65535 equals destination size [-Wstringop-truncation]
strncpy (dest, src, size);
^~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘strncpy0’,
    inlined from ‘ini_parse_file’ at ../src/plugins/ini/inih-r29/inih.c:171:5:
../src/plugins/ini/inih-r29/inih.c:64:2: warning: ‘strncpy’ specified bound 65535 equals destination size [-Wstringop-truncation]
strncpy (dest, src, size);
^~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘strncpy0’,
    inlined from ‘ini_parse_file’ at ../src/plugins/ini/inih-r29/inih.c:481:5:
../src/plugins/ini/inih-r29/inih.c:64:2: warning: ‘strncpy’ specified bound 65535 equals destination size [-Wstringop-truncation]
strncpy (dest, src, size);
^~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘strncpy0’,
    inlined from ‘ini_parse_file’ at ../src/plugins/ini/inih-r29/inih.c:407:6:
../src/plugins/ini/inih-r29/inih.c:64:2: warning: ‘strncpy’ specified bound 65535 equals destination size [-Wstringop-truncation]
strncpy (dest, src, size);
^~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘strncpy0’,
    inlined from ‘ini_parse_file’ at ../src/plugins/ini/inih-r29/inih.c:348:7:
../src/plugins/ini/inih-r29/inih.c:64:2: warning: ‘strncpy’ specified bound 65535 equals destination size [-Wstringop-truncation]
strncpy (dest, src, size);
^~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘strncpy0’,
    inlined from ‘ini_parse_file’ at ../src/plugins/ini/inih-r29/inih.c:264:7:
../src/plugins/ini/inih-r29/inih.c:64:2: warning: ‘strncpy’ specified bound 65535 equals destination size [-Wstringop-truncation]
strncpy (dest, src, size);
^~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘strncpy0’,
    inlined from ‘ini_parse_file’ at ../src/plugins/ini/inih-r29/inih.c:327:28:
../src/plugins/ini/inih-r29/inih.c:64:2: warning: ‘strncpy’ specified bound 65535 equals destination size [-Wstringop-truncation]
strncpy (dest, src, size);
^~~~~~~~~~~~~~~~~~~~~~~~~
[59/747] Building C object src/plugins/fcrypt/CMakeFiles/elektra-fcrypt-objects.dir/__/crypto/gpg.c.o
In function ‘getGpgBinary’,
    inlined from ‘libelektra_ELEKTRA_PLUGIN_NAME_C_LTX_elektraPlugingpgCall’ at ../src/plugins/crypto/gpg.c:736:6:
../src/plugins/crypto/gpg.c:216:4: warning: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
    strncpy (*gpgBin, configPath, configPathLen);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/plugins/crypto/gpg.c: In function ‘libelektra_ELEKTRA_PLUGIN_NAME_C_LTX_elektraPlugingpgCall’:
../src/plugins/crypto/gpg.c:207:32: note: length computed here
const size_t configPathLen = strlen (configPath);
                                ^~~~~~~~~~~~~~~~~~~
[63/747] Building C object src/plugins/keytometa/CMakeFiles/elektra-keytometa-objects.dir/keytometa.c.o
In function ‘elektraKeyAppendMetaLine.part.1’,
    inlined from ‘elektraKeyAppendMetaLine’:
../src/plugins/keytometa/keytometa.c:99:2: warning: ‘strncat’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
strncat (buffer, line, strlen (line));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[71/747] Building C object src/plugins/ini/CMakeFiles/elektra-ini-objects.dir/ini.c.o
In function ‘elektraKeyAppendLine’,
    inlined from ‘iniKeyToElektraKey’ at ../src/plugins/ini/ini.c:430:3:
../src/plugins/ini/ini.c:107:2: warning: ‘strncat’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
strncat (buffer, line, strlen (line));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[73/747] Building C object src/plugins/mathcheck/CMakeFiles/elektra-mathcheck-objects.dir/mathcheck.c.o
../src/plugins/mathcheck/mathcheck.c: In function ‘elektraMathcheckSet’:
../src/plugins/mathcheck/mathcheck.c:389:3: warning: ‘strncpy’ specified bound 24 equals destination size [-Wstringop-truncation]
strncpy (val1, keyString (cur), sizeof (val1));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/plugins/mathcheck/mathcheck.c:389:3: warning: ‘strncpy’ specified bound 24 equals destination size [-Wstringop-truncation]
../src/plugins/mathcheck/mathcheck.c:389:3: warning: ‘strncpy’ specified bound 24 equals destination size [-Wstringop-truncation]
[85/747] Building C object src/plugins/rename/CMakeFiles/elektra-rename-objects.dir/rename.c.o
../src/plugins/rename/rename.c: In function ‘elektraKeyCreateNewName’:
../src/plugins/rename/rename.c:107:4: warning: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
    strncpy (newName + strlen (newName), replaceWith, strlen (replaceWith));
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/plugins/rename/rename.c:114:3: warning: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
strncpy (newName, afterParentString, strlen (afterParentString));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[90/747] Building C object src/plugins/resolver/CMakeFiles/elektra-resolver_fm_xhp_x-objects.dir/resolver.c.o
../src/plugins/resolver/resolver.c: In function ‘elektraAddErrnoText’:
../src/plugins/resolver/resolver.c:286:2: warning: ‘strncat’ output may be truncated copying between 0 and 1022 bytes from a string of length 1023 [-Wstringop-truncation]
strncat (errorText, buffer, ERROR_SIZE - 2 - strlen (errorText));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[92/747] Building C object src/plugins/resolver/CMakeFiles/elektra-resolver_fm_pb_b-objects.dir/resolver.c.o
../src/plugins/resolver/resolver.c: In function ‘elektraAddErrnoText’:
../src/plugins/resolver/resolver.c:286:2: warning: ‘strncat’ output may be truncated copying between 0 and 1022 bytes from a string of length 1023 [-Wstringop-truncation]
strncat (errorText, buffer, ERROR_SIZE - 2 - strlen (errorText));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[93/747] Building C object src/plugins/resolver/CMakeFiles/elektra-resolver_fm_uhb_xb-objects.dir/resolver.c.o
../src/plugins/resolver/resolver.c: In function ‘elektraAddErrnoText’:
../src/plugins/resolver/resolver.c:286:2: warning: ‘strncat’ output may be truncated copying between 0 and 1022 bytes from a string of length 1023 [-Wstringop-truncation]
strncat (errorText, buffer, ERROR_SIZE - 2 - strlen (errorText));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[97/747] Building C object src/plugins/resolver/CMakeFiles/elektra-resolver_fm_hp_b-objects.dir/resolver.c.o
../src/plugins/resolver/resolver.c: In function ‘elektraAddErrnoText’:
../src/plugins/resolver/resolver.c:286:2: warning: ‘strncat’ output may be truncated copying between 0 and 1022 bytes from a string of length 1023 [-Wstringop-truncation]
strncat (errorText, buffer, ERROR_SIZE - 2 - strlen (errorText));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[99/747] Building C object src/plugins/resolver/CMakeFiles/elektra-resolver_fm_b_b-objects.dir/resolver.c.o
../src/plugins/resolver/resolver.c: In function ‘elektraAddErrnoText’:
../src/plugins/resolver/resolver.c:286:2: warning: ‘strncat’ output may be truncated copying between 0 and 1022 bytes from a string of length 1023 [-Wstringop-truncation]
strncat (errorText, buffer, ERROR_SIZE - 2 - strlen (errorText));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[101/747] Building C object src/plugins/resolver/CMakeFiles/elektra-resolver_fm_xb_x-objects.dir/resolver.c.o
../src/plugins/resolver/resolver.c: In function ‘elektraAddErrnoText’:
../src/plugins/resolver/resolver.c:286:2: warning: ‘strncat’ output may be truncated copying between 0 and 1022 bytes from a string of length 1023 [-Wstringop-truncation]
strncat (errorText, buffer, ERROR_SIZE - 2 - strlen (errorText));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[103/747] Building C object src/plugins/resolver/CMakeFiles/elektra-resolver_fm_hb_b-objects.dir/resolver.c.o
../src/plugins/resolver/resolver.c: In function ‘elektraAddErrnoText’:
../src/plugins/resolver/resolver.c:286:2: warning: ‘strncat’ output may be truncated copying between 0 and 1022 bytes from a string of length 1023 [-Wstringop-truncation]
strncat (errorText, buffer, ERROR_SIZE - 2 - strlen (errorText));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[106/747] Building C object src/plugins/resolver/CMakeFiles/elektra-resolver_fm_ub_x-objects.dir/resolver.c.o
../src/plugins/resolver/resolver.c: In function ‘elektraAddErrnoText’:
../src/plugins/resolver/resolver.c:286:2: warning: ‘strncat’ output may be truncated copying between 0 and 1022 bytes from a string of length 1023 [-Wstringop-truncation]
strncat (errorText, buffer, ERROR_SIZE - 2 - strlen (errorText));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[110/747] Building C object src/plugins/resolver/CMakeFiles/elektra-resolver_fm_hpu_b-objects.dir/resolver.c.o
../src/plugins/resolver/resolver.c: In function ‘elektraAddErrnoText’:
../src/plugins/resolver/resolver.c:286:2: warning: ‘strncat’ output may be truncated copying between 0 and 1022 bytes from a string of length 1023 [-Wstringop-truncation]
strncat (errorText, buffer, ERROR_SIZE - 2 - strlen (errorText));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[113/747] Building C object src/plugins/simpleini/CMakeFiles/elektra-simpleini-objects.dir/simpleini.c.o
../src/plugins/simpleini/simpleini.c: In function ‘replaceStringFormatSpec’:
../src/plugins/simpleini/simpleini.c:155:3: warning: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
strncpy (result + preReplLen, replace, replaceLen);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/plugins/simpleini/simpleini.c:142:22: note: length computed here
size_t replaceLen = strlen (replace);
                    ^~~~~~~~~~~~~~~~
[116/747] Building C object src/plugins/resolver/CMakeFiles/elektra-resolver_fm_xp_x-objects.dir/resolver.c.o
../src/plugins/resolver/resolver.c: In function ‘elektraAddErrnoText’:
../src/plugins/resolver/resolver.c:286:2: warning: ‘strncat’ output may be truncated copying between 0 and 1022 bytes from a string of length 1023 [-Wstringop-truncation]
strncat (errorText, buffer, ERROR_SIZE - 2 - strlen (errorText));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[119/747] Generating exported_symbols.h
Exporting symbols for dump base64 boolean c camel ccode conditionals constants counter crypto_botan crypto_gcrypt crypto_openssl csvstorage date desktop dini directoryvalue dpkg dump enum error fcrypt filecheck fstab glob hexcode hidden hosts iconv ini ipaddr keytometa line lineendings list logchange mathcheck mini multifile network ni noresolver null path profile range regexstore rename required resolver_fm_b_b resolver_fm_hb_b resolver_fm_hp_b resolver_fm_hpu_b resolver_fm_pb_b resolver_fm_ub_x resolver_fm_uhb_xb resolver_fm_xb_x resolver_fm_xhp_x resolver_fm_xp_x shell simpleini spec struct sync syslog timeofday tracer type uname validation wresolver 
[141/747] Building C object src/plugins/crypto/CMakeFiles/elektra-crypto_gcrypt.dir/gpg.c.o
In function ‘getGpgBinary’,
    inlined from ‘libelektra_crypto_gcrypt_LTX_elektraPlugingpgCall’ at ../src/plugins/crypto/gpg.c:736:6:
../src/plugins/crypto/gpg.c:216:4: warning: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
    strncpy (*gpgBin, configPath, configPathLen);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/plugins/crypto/gpg.c: In function ‘libelektra_crypto_gcrypt_LTX_elektraPlugingpgCall’:
../src/plugins/crypto/gpg.c:207:32: note: length computed here
const size_t configPathLen = strlen (configPath);
                                ^~~~~~~~~~~~~~~~~~~
[143/747] Building C object src/plugins/crypto/CMakeFiles/elektra-crypto_botan.dir/gpg.c.o
In function ‘getGpgBinary’,
    inlined from ‘libelektra_crypto_botan_LTX_elektraPlugingpgCall’ at ../src/plugins/crypto/gpg.c:736:6:
../src/plugins/crypto/gpg.c:216:4: warning: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
    strncpy (*gpgBin, configPath, configPathLen);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/plugins/crypto/gpg.c: In function ‘libelektra_crypto_botan_LTX_elektraPlugingpgCall’:
../src/plugins/crypto/gpg.c:207:32: note: length computed here
const size_t configPathLen = strlen (configPath);
                                ^~~~~~~~~~~~~~~~~~~
[152/747] Building C object src/plugins/crypto/CMakeFiles/elektra-crypto_openssl.dir/gpg.c.o
In function ‘getGpgBinary’,
    inlined from ‘libelektra_crypto_openssl_LTX_elektraPlugingpgCall’ at ../src/plugins/crypto/gpg.c:736:6:
../src/plugins/crypto/gpg.c:216:4: warning: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
    strncpy (*gpgBin, configPath, configPathLen);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/plugins/crypto/gpg.c: In function ‘libelektra_crypto_openssl_LTX_elektraPlugingpgCall’:
../src/plugins/crypto/gpg.c:207:32: note: length computed here
const size_t configPathLen = strlen (configPath);
                                ^~~~~~~~~~~~~~~~~~~
[165/747] Building C object src/plugins/ini/CMakeFiles/elektra-ini.dir/inih-r29/inih.c.o
In function ‘strncpy0’,
    inlined from ‘ini_parse_file’ at ../src/plugins/ini/inih-r29/inih.c:195:6:
../src/plugins/ini/inih-r29/inih.c:64:2: warning: ‘strncpy’ specified bound 65535 equals destination size [-Wstringop-truncation]
strncpy (dest, src, size);
^~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘strncpy0’,
    inlined from ‘ini_parse_file’ at ../src/plugins/ini/inih-r29/inih.c:171:5:
../src/plugins/ini/inih-r29/inih.c:64:2: warning: ‘strncpy’ specified bound 65535 equals destination size [-Wstringop-truncation]
strncpy (dest, src, size);
^~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘strncpy0’,
    inlined from ‘ini_parse_file’ at ../src/plugins/ini/inih-r29/inih.c:481:5:
../src/plugins/ini/inih-r29/inih.c:64:2: warning: ‘strncpy’ specified bound 65535 equals destination size [-Wstringop-truncation]
strncpy (dest, src, size);
^~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘strncpy0’,
    inlined from ‘ini_parse_file’ at ../src/plugins/ini/inih-r29/inih.c:407:6:
../src/plugins/ini/inih-r29/inih.c:64:2: warning: ‘strncpy’ specified bound 65535 equals destination size [-Wstringop-truncation]
strncpy (dest, src, size);
^~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘strncpy0’,
    inlined from ‘ini_parse_file’ at ../src/plugins/ini/inih-r29/inih.c:348:7:
../src/plugins/ini/inih-r29/inih.c:64:2: warning: ‘strncpy’ specified bound 65535 equals destination size [-Wstringop-truncation]
strncpy (dest, src, size);
^~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘strncpy0’,
    inlined from ‘ini_parse_file’ at ../src/plugins/ini/inih-r29/inih.c:264:7:
../src/plugins/ini/inih-r29/inih.c:64:2: warning: ‘strncpy’ specified bound 65535 equals destination size [-Wstringop-truncation]
strncpy (dest, src, size);
^~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘strncpy0’,
    inlined from ‘ini_parse_file’ at ../src/plugins/ini/inih-r29/inih.c:327:28:
../src/plugins/ini/inih-r29/inih.c:64:2: warning: ‘strncpy’ specified bound 65535 equals destination size [-Wstringop-truncation]
strncpy (dest, src, size);
^~~~~~~~~~~~~~~~~~~~~~~~~
[167/747] Building C object src/plugins/fcrypt/CMakeFiles/elektra-fcrypt.dir/__/crypto/gpg.c.o
In function ‘getGpgBinary’,
    inlined from ‘libelektra_ELEKTRA_PLUGIN_NAME_C_LTX_elektraPlugingpgCall’ at ../src/plugins/crypto/gpg.c:736:6:
../src/plugins/crypto/gpg.c:216:4: warning: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
    strncpy (*gpgBin, configPath, configPathLen);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/plugins/crypto/gpg.c: In function ‘libelektra_ELEKTRA_PLUGIN_NAME_C_LTX_elektraPlugingpgCall’:
../src/plugins/crypto/gpg.c:207:32: note: length computed here
const size_t configPathLen = strlen (configPath);
                                ^~~~~~~~~~~~~~~~~~~
[172/747] Building C object src/plugins/keytometa/CMakeFiles/elektra-keytometa.dir/keytometa.c.o
In function ‘elektraKeyAppendMetaLine.part.1’,
    inlined from ‘elektraKeyAppendMetaLine’:
../src/plugins/keytometa/keytometa.c:99:2: warning: ‘strncat’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
strncat (buffer, line, strlen (line));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[176/747] Building C object src/plugins/ini/CMakeFiles/elektra-ini.dir/ini.c.o
In function ‘elektraKeyAppendLine’,
    inlined from ‘iniKeyToElektraKey’ at ../src/plugins/ini/ini.c:430:3:
../src/plugins/ini/ini.c:107:2: warning: ‘strncat’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
strncat (buffer, line, strlen (line));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[180/747] Building C object src/plugins/mathcheck/CMakeFiles/elektra-mathcheck.dir/mathcheck.c.o
../src/plugins/mathcheck/mathcheck.c: In function ‘elektraMathcheckSet’:
../src/plugins/mathcheck/mathcheck.c:389:3: warning: ‘strncpy’ specified bound 24 equals destination size [-Wstringop-truncation]
strncpy (val1, keyString (cur), sizeof (val1));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/plugins/mathcheck/mathcheck.c:389:3: warning: ‘strncpy’ specified bound 24 equals destination size [-Wstringop-truncation]
../src/plugins/mathcheck/mathcheck.c:389:3: warning: ‘strncpy’ specified bound 24 equals destination size [-Wstringop-truncation]
[193/747] Building C object src/plugins/rename/CMakeFiles/elektra-rename.dir/rename.c.o
../src/plugins/rename/rename.c: In function ‘elektraKeyCreateNewName’:
../src/plugins/rename/rename.c:107:4: warning: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
    strncpy (newName + strlen (newName), replaceWith, strlen (replaceWith));
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/plugins/rename/rename.c:114:3: warning: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
strncpy (newName, afterParentString, strlen (afterParentString));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[196/747] Building C object src/plugins/resolver/CMakeFiles/elektra-resolver_fm_b_b.dir/resolver.c.o
../src/plugins/resolver/resolver.c: In function ‘elektraAddErrnoText’:
../src/plugins/resolver/resolver.c:286:2: warning: ‘strncat’ output may be truncated copying between 0 and 1022 bytes from a string of length 1023 [-Wstringop-truncation]
strncat (errorText, buffer, ERROR_SIZE - 2 - strlen (errorText));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[198/747] Building C object src/plugins/resolver/CMakeFiles/elektra-resolver_fm_xhp_x.dir/resolver.c.o
../src/plugins/resolver/resolver.c: In function ‘elektraAddErrnoText’:
../src/plugins/resolver/resolver.c:286:2: warning: ‘strncat’ output may be truncated copying between 0 and 1022 bytes from a string of length 1023 [-Wstringop-truncation]
strncat (errorText, buffer, ERROR_SIZE - 2 - strlen (errorText));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[201/747] Building C object src/plugins/resolver/CMakeFiles/elektra-resolver_fm_pb_b.dir/resolver.c.o
../src/plugins/resolver/resolver.c: In function ‘elektraAddErrnoText’:
../src/plugins/resolver/resolver.c:286:2: warning: ‘strncat’ output may be truncated copying between 0 and 1022 bytes from a string of length 1023 [-Wstringop-truncation]
strncat (errorText, buffer, ERROR_SIZE - 2 - strlen (errorText));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[203/747] Building C object src/plugins/resolver/CMakeFiles/elektra-resolver_fm_hpu_b.dir/resolver.c.o
../src/plugins/resolver/resolver.c: In function ‘elektraAddErrnoText’:
../src/plugins/resolver/resolver.c:286:2: warning: ‘strncat’ output may be truncated copying between 0 and 1022 bytes from a string of length 1023 [-Wstringop-truncation]
strncat (errorText, buffer, ERROR_SIZE - 2 - strlen (errorText));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[205/747] Building C object src/plugins/resolver/CMakeFiles/elektra-resolver_fm_hb_b.dir/resolver.c.o
../src/plugins/resolver/resolver.c: In function ‘elektraAddErrnoText’:
../src/plugins/resolver/resolver.c:286:2: warning: ‘strncat’ output may be truncated copying between 0 and 1022 bytes from a string of length 1023 [-Wstringop-truncation]
strncat (errorText, buffer, ERROR_SIZE - 2 - strlen (errorText));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[207/747] Building C object src/plugins/resolver/CMakeFiles/elektra-resolver_fm_xb_x.dir/resolver.c.o
../src/plugins/resolver/resolver.c: In function ‘elektraAddErrnoText’:
../src/plugins/resolver/resolver.c:286:2: warning: ‘strncat’ output may be truncated copying between 0 and 1022 bytes from a string of length 1023 [-Wstringop-truncation]
strncat (errorText, buffer, ERROR_SIZE - 2 - strlen (errorText));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[208/747] Building C object src/plugins/resolver/CMakeFiles/elektra-resolver_fm_uhb_xb.dir/resolver.c.o
../src/plugins/resolver/resolver.c: In function ‘elektraAddErrnoText’:
../src/plugins/resolver/resolver.c:286:2: warning: ‘strncat’ output may be truncated copying between 0 and 1022 bytes from a string of length 1023 [-Wstringop-truncation]
strncat (errorText, buffer, ERROR_SIZE - 2 - strlen (errorText));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[211/747] Building C object src/plugins/resolver/CMakeFiles/elektra-resolver_fm_hp_b.dir/resolver.c.o
../src/plugins/resolver/resolver.c: In function ‘elektraAddErrnoText’:
../src/plugins/resolver/resolver.c:286:2: warning: ‘strncat’ output may be truncated copying between 0 and 1022 bytes from a string of length 1023 [-Wstringop-truncation]
strncat (errorText, buffer, ERROR_SIZE - 2 - strlen (errorText));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[214/747] Building C object src/plugins/resolver/CMakeFiles/elektra-resolver_fm_ub_x.dir/resolver.c.o
../src/plugins/resolver/resolver.c: In function ‘elektraAddErrnoText’:
../src/plugins/resolver/resolver.c:286:2: warning: ‘strncat’ output may be truncated copying between 0 and 1022 bytes from a string of length 1023 [-Wstringop-truncation]
strncat (errorText, buffer, ERROR_SIZE - 2 - strlen (errorText));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[215/747] Building C object src/plugins/simpleini/CMakeFiles/elektra-simpleini.dir/simpleini.c.o
../src/plugins/simpleini/simpleini.c: In function ‘replaceStringFormatSpec’:
../src/plugins/simpleini/simpleini.c:155:3: warning: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
strncpy (result + preReplLen, replace, replaceLen);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/plugins/simpleini/simpleini.c:142:22: note: length computed here
size_t replaceLen = strlen (replace);
                    ^~~~~~~~~~~~~~~~
[220/747] Building C object src/plugins/resolver/CMakeFiles/elektra-resolver_fm_xp_x.dir/resolver.c.o
../src/plugins/resolver/resolver.c: In function ‘elektraAddErrnoText’:
../src/plugins/resolver/resolver.c:286:2: warning: ‘strncat’ output may be truncated copying between 0 and 1022 bytes from a string of length 1023 [-Wstringop-truncation]
strncat (errorText, buffer, ERROR_SIZE - 2 - strlen (errorText));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[280/747] Building C object src/libs/pluginprocess/CMakeFiles/elektra-pluginprocess.dir/pluginprocess.c.o
../src/libs/pluginprocess/pluginprocess.c: In function ‘getPipename’:
../src/libs/pluginprocess/pluginprocess.c:288:2: warning: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
strncpy (pipename, directoryName, strlen (directoryName));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/libs/pluginprocess/pluginprocess.c:289:2: warning: ‘strncpy’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
strncpy (pipename + strlen (directoryName), suffix, strlen (suffix) + 1);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/libs/pluginprocess/pluginprocess.c:289:54: note: length computed here
strncpy (pipename + strlen (directoryName), suffix, strlen (suffix) + 1);
                                                    ^~~~~~~~~~~~~~~
[298/747] Building C object src/libs/elektra/CMakeFiles/elektra-core.dir/keyset.c.o
../src/libs/elektra/keyset.c: In function ‘ksCut’:
../src/libs/elektra/keyset.c:1089:5: warning: ‘strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation]
    strncpy (newname + 2, "spec", 4);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/libs/elektra/keyset.c:1097:5: warning: ‘strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation]
    strncpy (newname + 2, "proc", 4);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/libs/elektra/keyset.c:1105:5: warning: ‘strncpy’ output truncated before terminating nul copying 3 bytes from a string of the same length [-Wstringop-truncation]
    strncpy (newname + 3, "dir", 3);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/libs/elektra/keyset.c:1113:5: warning: ‘strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation]
    strncpy (newname + 2, "user", 4);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/libs/elektra/keyset.c:1121:5: warning: ‘strncpy’ output truncated before terminating nul copying 6 bytes from a string of the same length [-Wstringop-truncation]
    strncpy (newname, "system", 6);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/libs/elektra/keyset.c: In function ‘elektraLookupByCascading’:
../src/libs/elektra/keyset.c:1801:3: warning: ‘strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation]
strncpy (newname + 2, "spec", 4);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/libs/elektra/keyset.c:1832:2: warning: ‘strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation]
strncpy (newname + 2, "proc", 4);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/libs/elektra/keyset.c:1841:3: warning: ‘strncpy’ output truncated before terminating nul copying 3 bytes from a string of the same length [-Wstringop-truncation]
strncpy (newname + 3, "dir", 3);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/libs/elektra/keyset.c:1851:3: warning: ‘strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation]
strncpy (newname + 2, "user", 4);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/libs/elektra/keyset.c:1861:3: warning: ‘strncpy’ output truncated before terminating nul copying 6 bytes from a string of the same length [-Wstringop-truncation]
strncpy (newname, "system", 6);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[414/747] Building C object src/libs/elektra/CMakeFiles/elektra.dir/keyset.c.o
../src/libs/elektra/keyset.c: In function ‘ksCut’:
../src/libs/elektra/keyset.c:1089:5: warning: ‘strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation]
    strncpy (newname + 2, "spec", 4);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/libs/elektra/keyset.c:1097:5: warning: ‘strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation]
    strncpy (newname + 2, "proc", 4);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/libs/elektra/keyset.c:1105:5: warning: ‘strncpy’ output truncated before terminating nul copying 3 bytes from a string of the same length [-Wstringop-truncation]
    strncpy (newname + 3, "dir", 3);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/libs/elektra/keyset.c:1113:5: warning: ‘strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation]
    strncpy (newname + 2, "user", 4);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/libs/elektra/keyset.c:1121:5: warning: ‘strncpy’ output truncated before terminating nul copying 6 bytes from a string of the same length [-Wstringop-truncation]
    strncpy (newname, "system", 6);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/libs/elektra/keyset.c: In function ‘elektraLookupByCascading’:
../src/libs/elektra/keyset.c:1801:3: warning: ‘strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation]
strncpy (newname + 2, "spec", 4);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/libs/elektra/keyset.c:1832:2: warning: ‘strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation]
strncpy (newname + 2, "proc", 4);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/libs/elektra/keyset.c:1841:3: warning: ‘strncpy’ output truncated before terminating nul copying 3 bytes from a string of the same length [-Wstringop-truncation]
strncpy (newname + 3, "dir", 3);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/libs/elektra/keyset.c:1851:3: warning: ‘strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation]
strncpy (newname + 2, "user", 4);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/libs/elektra/keyset.c:1861:3: warning: ‘strncpy’ output truncated before terminating nul copying 6 bytes from a string of the same length [-Wstringop-truncation]
strncpy (newname, "system", 6);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[638/747] Building C object tests/cframework/CMakeFiles/cframework.dir/tests.c.o
../tests/cframework/tests.c: In function ‘init’:
../tests/cframework/tests.c:53:3: warning: ‘strncpy’ specified bound 4096 equals destination size [-Wstringop-truncation]
strncpy (srcdir, argv[1], sizeof (srcdir));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[747/747] Linking CXX executable bin/testkdb_simple
Member

petermax2 commented May 19, 2018

gcc -Wstringop-truncation (version gcc (GCC) 8.1.1 20180502 (Red Hat 8.1.1-1)) reports several compiler warnings on Fedora 28.

However, I am not sure how relevant these warnings are.

[pnirschl@peterspc build]$ LANG=en_US.UTF-8 ninja
[33/747] Building C object src/plugins/crypto/CMakeFiles/elektra-crypto_gcrypt-objects.dir/gpg.c.o
In function ‘getGpgBinary’,
    inlined from ‘libelektra_crypto_gcrypt_LTX_elektraPlugingpgCall’ at ../src/plugins/crypto/gpg.c:736:6:
../src/plugins/crypto/gpg.c:216:4: warning: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
    strncpy (*gpgBin, configPath, configPathLen);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/plugins/crypto/gpg.c: In function ‘libelektra_crypto_gcrypt_LTX_elektraPlugingpgCall’:
../src/plugins/crypto/gpg.c:207:32: note: length computed here
const size_t configPathLen = strlen (configPath);
                                ^~~~~~~~~~~~~~~~~~~
[40/747] Building C object src/plugins/crypto/CMakeFiles/elektra-crypto_openssl-objects.dir/gpg.c.o
In function ‘getGpgBinary’,
    inlined from ‘libelektra_crypto_openssl_LTX_elektraPlugingpgCall’ at ../src/plugins/crypto/gpg.c:736:6:
../src/plugins/crypto/gpg.c:216:4: warning: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
    strncpy (*gpgBin, configPath, configPathLen);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/plugins/crypto/gpg.c: In function ‘libelektra_crypto_openssl_LTX_elektraPlugingpgCall’:
../src/plugins/crypto/gpg.c:207:32: note: length computed here
const size_t configPathLen = strlen (configPath);
                                ^~~~~~~~~~~~~~~~~~~
[46/747] Building C object src/plugins/crypto/CMakeFiles/elektra-crypto_botan-objects.dir/gpg.c.o
In function ‘getGpgBinary’,
    inlined from ‘libelektra_crypto_botan_LTX_elektraPlugingpgCall’ at ../src/plugins/crypto/gpg.c:736:6:
../src/plugins/crypto/gpg.c:216:4: warning: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
    strncpy (*gpgBin, configPath, configPathLen);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/plugins/crypto/gpg.c: In function ‘libelektra_crypto_botan_LTX_elektraPlugingpgCall’:
../src/plugins/crypto/gpg.c:207:32: note: length computed here
const size_t configPathLen = strlen (configPath);
                                ^~~~~~~~~~~~~~~~~~~
[55/747] Building C object src/plugins/ini/CMakeFiles/elektra-ini-objects.dir/inih-r29/inih.c.o
In function ‘strncpy0’,
    inlined from ‘ini_parse_file’ at ../src/plugins/ini/inih-r29/inih.c:195:6:
../src/plugins/ini/inih-r29/inih.c:64:2: warning: ‘strncpy’ specified bound 65535 equals destination size [-Wstringop-truncation]
strncpy (dest, src, size);
^~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘strncpy0’,
    inlined from ‘ini_parse_file’ at ../src/plugins/ini/inih-r29/inih.c:171:5:
../src/plugins/ini/inih-r29/inih.c:64:2: warning: ‘strncpy’ specified bound 65535 equals destination size [-Wstringop-truncation]
strncpy (dest, src, size);
^~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘strncpy0’,
    inlined from ‘ini_parse_file’ at ../src/plugins/ini/inih-r29/inih.c:481:5:
../src/plugins/ini/inih-r29/inih.c:64:2: warning: ‘strncpy’ specified bound 65535 equals destination size [-Wstringop-truncation]
strncpy (dest, src, size);
^~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘strncpy0’,
    inlined from ‘ini_parse_file’ at ../src/plugins/ini/inih-r29/inih.c:407:6:
../src/plugins/ini/inih-r29/inih.c:64:2: warning: ‘strncpy’ specified bound 65535 equals destination size [-Wstringop-truncation]
strncpy (dest, src, size);
^~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘strncpy0’,
    inlined from ‘ini_parse_file’ at ../src/plugins/ini/inih-r29/inih.c:348:7:
../src/plugins/ini/inih-r29/inih.c:64:2: warning: ‘strncpy’ specified bound 65535 equals destination size [-Wstringop-truncation]
strncpy (dest, src, size);
^~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘strncpy0’,
    inlined from ‘ini_parse_file’ at ../src/plugins/ini/inih-r29/inih.c:264:7:
../src/plugins/ini/inih-r29/inih.c:64:2: warning: ‘strncpy’ specified bound 65535 equals destination size [-Wstringop-truncation]
strncpy (dest, src, size);
^~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘strncpy0’,
    inlined from ‘ini_parse_file’ at ../src/plugins/ini/inih-r29/inih.c:327:28:
../src/plugins/ini/inih-r29/inih.c:64:2: warning: ‘strncpy’ specified bound 65535 equals destination size [-Wstringop-truncation]
strncpy (dest, src, size);
^~~~~~~~~~~~~~~~~~~~~~~~~
[59/747] Building C object src/plugins/fcrypt/CMakeFiles/elektra-fcrypt-objects.dir/__/crypto/gpg.c.o
In function ‘getGpgBinary’,
    inlined from ‘libelektra_ELEKTRA_PLUGIN_NAME_C_LTX_elektraPlugingpgCall’ at ../src/plugins/crypto/gpg.c:736:6:
../src/plugins/crypto/gpg.c:216:4: warning: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
    strncpy (*gpgBin, configPath, configPathLen);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/plugins/crypto/gpg.c: In function ‘libelektra_ELEKTRA_PLUGIN_NAME_C_LTX_elektraPlugingpgCall’:
../src/plugins/crypto/gpg.c:207:32: note: length computed here
const size_t configPathLen = strlen (configPath);
                                ^~~~~~~~~~~~~~~~~~~
[63/747] Building C object src/plugins/keytometa/CMakeFiles/elektra-keytometa-objects.dir/keytometa.c.o
In function ‘elektraKeyAppendMetaLine.part.1’,
    inlined from ‘elektraKeyAppendMetaLine’:
../src/plugins/keytometa/keytometa.c:99:2: warning: ‘strncat’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
strncat (buffer, line, strlen (line));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[71/747] Building C object src/plugins/ini/CMakeFiles/elektra-ini-objects.dir/ini.c.o
In function ‘elektraKeyAppendLine’,
    inlined from ‘iniKeyToElektraKey’ at ../src/plugins/ini/ini.c:430:3:
../src/plugins/ini/ini.c:107:2: warning: ‘strncat’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
strncat (buffer, line, strlen (line));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[73/747] Building C object src/plugins/mathcheck/CMakeFiles/elektra-mathcheck-objects.dir/mathcheck.c.o
../src/plugins/mathcheck/mathcheck.c: In function ‘elektraMathcheckSet’:
../src/plugins/mathcheck/mathcheck.c:389:3: warning: ‘strncpy’ specified bound 24 equals destination size [-Wstringop-truncation]
strncpy (val1, keyString (cur), sizeof (val1));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/plugins/mathcheck/mathcheck.c:389:3: warning: ‘strncpy’ specified bound 24 equals destination size [-Wstringop-truncation]
../src/plugins/mathcheck/mathcheck.c:389:3: warning: ‘strncpy’ specified bound 24 equals destination size [-Wstringop-truncation]
[85/747] Building C object src/plugins/rename/CMakeFiles/elektra-rename-objects.dir/rename.c.o
../src/plugins/rename/rename.c: In function ‘elektraKeyCreateNewName’:
../src/plugins/rename/rename.c:107:4: warning: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
    strncpy (newName + strlen (newName), replaceWith, strlen (replaceWith));
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/plugins/rename/rename.c:114:3: warning: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
strncpy (newName, afterParentString, strlen (afterParentString));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[90/747] Building C object src/plugins/resolver/CMakeFiles/elektra-resolver_fm_xhp_x-objects.dir/resolver.c.o
../src/plugins/resolver/resolver.c: In function ‘elektraAddErrnoText’:
../src/plugins/resolver/resolver.c:286:2: warning: ‘strncat’ output may be truncated copying between 0 and 1022 bytes from a string of length 1023 [-Wstringop-truncation]
strncat (errorText, buffer, ERROR_SIZE - 2 - strlen (errorText));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[92/747] Building C object src/plugins/resolver/CMakeFiles/elektra-resolver_fm_pb_b-objects.dir/resolver.c.o
../src/plugins/resolver/resolver.c: In function ‘elektraAddErrnoText’:
../src/plugins/resolver/resolver.c:286:2: warning: ‘strncat’ output may be truncated copying between 0 and 1022 bytes from a string of length 1023 [-Wstringop-truncation]
strncat (errorText, buffer, ERROR_SIZE - 2 - strlen (errorText));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[93/747] Building C object src/plugins/resolver/CMakeFiles/elektra-resolver_fm_uhb_xb-objects.dir/resolver.c.o
../src/plugins/resolver/resolver.c: In function ‘elektraAddErrnoText’:
../src/plugins/resolver/resolver.c:286:2: warning: ‘strncat’ output may be truncated copying between 0 and 1022 bytes from a string of length 1023 [-Wstringop-truncation]
strncat (errorText, buffer, ERROR_SIZE - 2 - strlen (errorText));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[97/747] Building C object src/plugins/resolver/CMakeFiles/elektra-resolver_fm_hp_b-objects.dir/resolver.c.o
../src/plugins/resolver/resolver.c: In function ‘elektraAddErrnoText’:
../src/plugins/resolver/resolver.c:286:2: warning: ‘strncat’ output may be truncated copying between 0 and 1022 bytes from a string of length 1023 [-Wstringop-truncation]
strncat (errorText, buffer, ERROR_SIZE - 2 - strlen (errorText));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[99/747] Building C object src/plugins/resolver/CMakeFiles/elektra-resolver_fm_b_b-objects.dir/resolver.c.o
../src/plugins/resolver/resolver.c: In function ‘elektraAddErrnoText’:
../src/plugins/resolver/resolver.c:286:2: warning: ‘strncat’ output may be truncated copying between 0 and 1022 bytes from a string of length 1023 [-Wstringop-truncation]
strncat (errorText, buffer, ERROR_SIZE - 2 - strlen (errorText));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[101/747] Building C object src/plugins/resolver/CMakeFiles/elektra-resolver_fm_xb_x-objects.dir/resolver.c.o
../src/plugins/resolver/resolver.c: In function ‘elektraAddErrnoText’:
../src/plugins/resolver/resolver.c:286:2: warning: ‘strncat’ output may be truncated copying between 0 and 1022 bytes from a string of length 1023 [-Wstringop-truncation]
strncat (errorText, buffer, ERROR_SIZE - 2 - strlen (errorText));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[103/747] Building C object src/plugins/resolver/CMakeFiles/elektra-resolver_fm_hb_b-objects.dir/resolver.c.o
../src/plugins/resolver/resolver.c: In function ‘elektraAddErrnoText’:
../src/plugins/resolver/resolver.c:286:2: warning: ‘strncat’ output may be truncated copying between 0 and 1022 bytes from a string of length 1023 [-Wstringop-truncation]
strncat (errorText, buffer, ERROR_SIZE - 2 - strlen (errorText));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[106/747] Building C object src/plugins/resolver/CMakeFiles/elektra-resolver_fm_ub_x-objects.dir/resolver.c.o
../src/plugins/resolver/resolver.c: In function ‘elektraAddErrnoText’:
../src/plugins/resolver/resolver.c:286:2: warning: ‘strncat’ output may be truncated copying between 0 and 1022 bytes from a string of length 1023 [-Wstringop-truncation]
strncat (errorText, buffer, ERROR_SIZE - 2 - strlen (errorText));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[110/747] Building C object src/plugins/resolver/CMakeFiles/elektra-resolver_fm_hpu_b-objects.dir/resolver.c.o
../src/plugins/resolver/resolver.c: In function ‘elektraAddErrnoText’:
../src/plugins/resolver/resolver.c:286:2: warning: ‘strncat’ output may be truncated copying between 0 and 1022 bytes from a string of length 1023 [-Wstringop-truncation]
strncat (errorText, buffer, ERROR_SIZE - 2 - strlen (errorText));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[113/747] Building C object src/plugins/simpleini/CMakeFiles/elektra-simpleini-objects.dir/simpleini.c.o
../src/plugins/simpleini/simpleini.c: In function ‘replaceStringFormatSpec’:
../src/plugins/simpleini/simpleini.c:155:3: warning: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
strncpy (result + preReplLen, replace, replaceLen);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/plugins/simpleini/simpleini.c:142:22: note: length computed here
size_t replaceLen = strlen (replace);
                    ^~~~~~~~~~~~~~~~
[116/747] Building C object src/plugins/resolver/CMakeFiles/elektra-resolver_fm_xp_x-objects.dir/resolver.c.o
../src/plugins/resolver/resolver.c: In function ‘elektraAddErrnoText’:
../src/plugins/resolver/resolver.c:286:2: warning: ‘strncat’ output may be truncated copying between 0 and 1022 bytes from a string of length 1023 [-Wstringop-truncation]
strncat (errorText, buffer, ERROR_SIZE - 2 - strlen (errorText));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[119/747] Generating exported_symbols.h
Exporting symbols for dump base64 boolean c camel ccode conditionals constants counter crypto_botan crypto_gcrypt crypto_openssl csvstorage date desktop dini directoryvalue dpkg dump enum error fcrypt filecheck fstab glob hexcode hidden hosts iconv ini ipaddr keytometa line lineendings list logchange mathcheck mini multifile network ni noresolver null path profile range regexstore rename required resolver_fm_b_b resolver_fm_hb_b resolver_fm_hp_b resolver_fm_hpu_b resolver_fm_pb_b resolver_fm_ub_x resolver_fm_uhb_xb resolver_fm_xb_x resolver_fm_xhp_x resolver_fm_xp_x shell simpleini spec struct sync syslog timeofday tracer type uname validation wresolver 
[141/747] Building C object src/plugins/crypto/CMakeFiles/elektra-crypto_gcrypt.dir/gpg.c.o
In function ‘getGpgBinary’,
    inlined from ‘libelektra_crypto_gcrypt_LTX_elektraPlugingpgCall’ at ../src/plugins/crypto/gpg.c:736:6:
../src/plugins/crypto/gpg.c:216:4: warning: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
    strncpy (*gpgBin, configPath, configPathLen);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/plugins/crypto/gpg.c: In function ‘libelektra_crypto_gcrypt_LTX_elektraPlugingpgCall’:
../src/plugins/crypto/gpg.c:207:32: note: length computed here
const size_t configPathLen = strlen (configPath);
                                ^~~~~~~~~~~~~~~~~~~
[143/747] Building C object src/plugins/crypto/CMakeFiles/elektra-crypto_botan.dir/gpg.c.o
In function ‘getGpgBinary’,
    inlined from ‘libelektra_crypto_botan_LTX_elektraPlugingpgCall’ at ../src/plugins/crypto/gpg.c:736:6:
../src/plugins/crypto/gpg.c:216:4: warning: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
    strncpy (*gpgBin, configPath, configPathLen);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/plugins/crypto/gpg.c: In function ‘libelektra_crypto_botan_LTX_elektraPlugingpgCall’:
../src/plugins/crypto/gpg.c:207:32: note: length computed here
const size_t configPathLen = strlen (configPath);
                                ^~~~~~~~~~~~~~~~~~~
[152/747] Building C object src/plugins/crypto/CMakeFiles/elektra-crypto_openssl.dir/gpg.c.o
In function ‘getGpgBinary’,
    inlined from ‘libelektra_crypto_openssl_LTX_elektraPlugingpgCall’ at ../src/plugins/crypto/gpg.c:736:6:
../src/plugins/crypto/gpg.c:216:4: warning: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
    strncpy (*gpgBin, configPath, configPathLen);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/plugins/crypto/gpg.c: In function ‘libelektra_crypto_openssl_LTX_elektraPlugingpgCall’:
../src/plugins/crypto/gpg.c:207:32: note: length computed here
const size_t configPathLen = strlen (configPath);
                                ^~~~~~~~~~~~~~~~~~~
[165/747] Building C object src/plugins/ini/CMakeFiles/elektra-ini.dir/inih-r29/inih.c.o
In function ‘strncpy0’,
    inlined from ‘ini_parse_file’ at ../src/plugins/ini/inih-r29/inih.c:195:6:
../src/plugins/ini/inih-r29/inih.c:64:2: warning: ‘strncpy’ specified bound 65535 equals destination size [-Wstringop-truncation]
strncpy (dest, src, size);
^~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘strncpy0’,
    inlined from ‘ini_parse_file’ at ../src/plugins/ini/inih-r29/inih.c:171:5:
../src/plugins/ini/inih-r29/inih.c:64:2: warning: ‘strncpy’ specified bound 65535 equals destination size [-Wstringop-truncation]
strncpy (dest, src, size);
^~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘strncpy0’,
    inlined from ‘ini_parse_file’ at ../src/plugins/ini/inih-r29/inih.c:481:5:
../src/plugins/ini/inih-r29/inih.c:64:2: warning: ‘strncpy’ specified bound 65535 equals destination size [-Wstringop-truncation]
strncpy (dest, src, size);
^~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘strncpy0’,
    inlined from ‘ini_parse_file’ at ../src/plugins/ini/inih-r29/inih.c:407:6:
../src/plugins/ini/inih-r29/inih.c:64:2: warning: ‘strncpy’ specified bound 65535 equals destination size [-Wstringop-truncation]
strncpy (dest, src, size);
^~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘strncpy0’,
    inlined from ‘ini_parse_file’ at ../src/plugins/ini/inih-r29/inih.c:348:7:
../src/plugins/ini/inih-r29/inih.c:64:2: warning: ‘strncpy’ specified bound 65535 equals destination size [-Wstringop-truncation]
strncpy (dest, src, size);
^~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘strncpy0’,
    inlined from ‘ini_parse_file’ at ../src/plugins/ini/inih-r29/inih.c:264:7:
../src/plugins/ini/inih-r29/inih.c:64:2: warning: ‘strncpy’ specified bound 65535 equals destination size [-Wstringop-truncation]
strncpy (dest, src, size);
^~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘strncpy0’,
    inlined from ‘ini_parse_file’ at ../src/plugins/ini/inih-r29/inih.c:327:28:
../src/plugins/ini/inih-r29/inih.c:64:2: warning: ‘strncpy’ specified bound 65535 equals destination size [-Wstringop-truncation]
strncpy (dest, src, size);
^~~~~~~~~~~~~~~~~~~~~~~~~
[167/747] Building C object src/plugins/fcrypt/CMakeFiles/elektra-fcrypt.dir/__/crypto/gpg.c.o
In function ‘getGpgBinary’,
    inlined from ‘libelektra_ELEKTRA_PLUGIN_NAME_C_LTX_elektraPlugingpgCall’ at ../src/plugins/crypto/gpg.c:736:6:
../src/plugins/crypto/gpg.c:216:4: warning: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
    strncpy (*gpgBin, configPath, configPathLen);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/plugins/crypto/gpg.c: In function ‘libelektra_ELEKTRA_PLUGIN_NAME_C_LTX_elektraPlugingpgCall’:
../src/plugins/crypto/gpg.c:207:32: note: length computed here
const size_t configPathLen = strlen (configPath);
                                ^~~~~~~~~~~~~~~~~~~
[172/747] Building C object src/plugins/keytometa/CMakeFiles/elektra-keytometa.dir/keytometa.c.o
In function ‘elektraKeyAppendMetaLine.part.1’,
    inlined from ‘elektraKeyAppendMetaLine’:
../src/plugins/keytometa/keytometa.c:99:2: warning: ‘strncat’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
strncat (buffer, line, strlen (line));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[176/747] Building C object src/plugins/ini/CMakeFiles/elektra-ini.dir/ini.c.o
In function ‘elektraKeyAppendLine’,
    inlined from ‘iniKeyToElektraKey’ at ../src/plugins/ini/ini.c:430:3:
../src/plugins/ini/ini.c:107:2: warning: ‘strncat’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
strncat (buffer, line, strlen (line));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[180/747] Building C object src/plugins/mathcheck/CMakeFiles/elektra-mathcheck.dir/mathcheck.c.o
../src/plugins/mathcheck/mathcheck.c: In function ‘elektraMathcheckSet’:
../src/plugins/mathcheck/mathcheck.c:389:3: warning: ‘strncpy’ specified bound 24 equals destination size [-Wstringop-truncation]
strncpy (val1, keyString (cur), sizeof (val1));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/plugins/mathcheck/mathcheck.c:389:3: warning: ‘strncpy’ specified bound 24 equals destination size [-Wstringop-truncation]
../src/plugins/mathcheck/mathcheck.c:389:3: warning: ‘strncpy’ specified bound 24 equals destination size [-Wstringop-truncation]
[193/747] Building C object src/plugins/rename/CMakeFiles/elektra-rename.dir/rename.c.o
../src/plugins/rename/rename.c: In function ‘elektraKeyCreateNewName’:
../src/plugins/rename/rename.c:107:4: warning: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
    strncpy (newName + strlen (newName), replaceWith, strlen (replaceWith));
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/plugins/rename/rename.c:114:3: warning: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
strncpy (newName, afterParentString, strlen (afterParentString));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[196/747] Building C object src/plugins/resolver/CMakeFiles/elektra-resolver_fm_b_b.dir/resolver.c.o
../src/plugins/resolver/resolver.c: In function ‘elektraAddErrnoText’:
../src/plugins/resolver/resolver.c:286:2: warning: ‘strncat’ output may be truncated copying between 0 and 1022 bytes from a string of length 1023 [-Wstringop-truncation]
strncat (errorText, buffer, ERROR_SIZE - 2 - strlen (errorText));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[198/747] Building C object src/plugins/resolver/CMakeFiles/elektra-resolver_fm_xhp_x.dir/resolver.c.o
../src/plugins/resolver/resolver.c: In function ‘elektraAddErrnoText’:
../src/plugins/resolver/resolver.c:286:2: warning: ‘strncat’ output may be truncated copying between 0 and 1022 bytes from a string of length 1023 [-Wstringop-truncation]
strncat (errorText, buffer, ERROR_SIZE - 2 - strlen (errorText));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[201/747] Building C object src/plugins/resolver/CMakeFiles/elektra-resolver_fm_pb_b.dir/resolver.c.o
../src/plugins/resolver/resolver.c: In function ‘elektraAddErrnoText’:
../src/plugins/resolver/resolver.c:286:2: warning: ‘strncat’ output may be truncated copying between 0 and 1022 bytes from a string of length 1023 [-Wstringop-truncation]
strncat (errorText, buffer, ERROR_SIZE - 2 - strlen (errorText));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[203/747] Building C object src/plugins/resolver/CMakeFiles/elektra-resolver_fm_hpu_b.dir/resolver.c.o
../src/plugins/resolver/resolver.c: In function ‘elektraAddErrnoText’:
../src/plugins/resolver/resolver.c:286:2: warning: ‘strncat’ output may be truncated copying between 0 and 1022 bytes from a string of length 1023 [-Wstringop-truncation]
strncat (errorText, buffer, ERROR_SIZE - 2 - strlen (errorText));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[205/747] Building C object src/plugins/resolver/CMakeFiles/elektra-resolver_fm_hb_b.dir/resolver.c.o
../src/plugins/resolver/resolver.c: In function ‘elektraAddErrnoText’:
../src/plugins/resolver/resolver.c:286:2: warning: ‘strncat’ output may be truncated copying between 0 and 1022 bytes from a string of length 1023 [-Wstringop-truncation]
strncat (errorText, buffer, ERROR_SIZE - 2 - strlen (errorText));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[207/747] Building C object src/plugins/resolver/CMakeFiles/elektra-resolver_fm_xb_x.dir/resolver.c.o
../src/plugins/resolver/resolver.c: In function ‘elektraAddErrnoText’:
../src/plugins/resolver/resolver.c:286:2: warning: ‘strncat’ output may be truncated copying between 0 and 1022 bytes from a string of length 1023 [-Wstringop-truncation]
strncat (errorText, buffer, ERROR_SIZE - 2 - strlen (errorText));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[208/747] Building C object src/plugins/resolver/CMakeFiles/elektra-resolver_fm_uhb_xb.dir/resolver.c.o
../src/plugins/resolver/resolver.c: In function ‘elektraAddErrnoText’:
../src/plugins/resolver/resolver.c:286:2: warning: ‘strncat’ output may be truncated copying between 0 and 1022 bytes from a string of length 1023 [-Wstringop-truncation]
strncat (errorText, buffer, ERROR_SIZE - 2 - strlen (errorText));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[211/747] Building C object src/plugins/resolver/CMakeFiles/elektra-resolver_fm_hp_b.dir/resolver.c.o
../src/plugins/resolver/resolver.c: In function ‘elektraAddErrnoText’:
../src/plugins/resolver/resolver.c:286:2: warning: ‘strncat’ output may be truncated copying between 0 and 1022 bytes from a string of length 1023 [-Wstringop-truncation]
strncat (errorText, buffer, ERROR_SIZE - 2 - strlen (errorText));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[214/747] Building C object src/plugins/resolver/CMakeFiles/elektra-resolver_fm_ub_x.dir/resolver.c.o
../src/plugins/resolver/resolver.c: In function ‘elektraAddErrnoText’:
../src/plugins/resolver/resolver.c:286:2: warning: ‘strncat’ output may be truncated copying between 0 and 1022 bytes from a string of length 1023 [-Wstringop-truncation]
strncat (errorText, buffer, ERROR_SIZE - 2 - strlen (errorText));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[215/747] Building C object src/plugins/simpleini/CMakeFiles/elektra-simpleini.dir/simpleini.c.o
../src/plugins/simpleini/simpleini.c: In function ‘replaceStringFormatSpec’:
../src/plugins/simpleini/simpleini.c:155:3: warning: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
strncpy (result + preReplLen, replace, replaceLen);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/plugins/simpleini/simpleini.c:142:22: note: length computed here
size_t replaceLen = strlen (replace);
                    ^~~~~~~~~~~~~~~~
[220/747] Building C object src/plugins/resolver/CMakeFiles/elektra-resolver_fm_xp_x.dir/resolver.c.o
../src/plugins/resolver/resolver.c: In function ‘elektraAddErrnoText’:
../src/plugins/resolver/resolver.c:286:2: warning: ‘strncat’ output may be truncated copying between 0 and 1022 bytes from a string of length 1023 [-Wstringop-truncation]
strncat (errorText, buffer, ERROR_SIZE - 2 - strlen (errorText));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[280/747] Building C object src/libs/pluginprocess/CMakeFiles/elektra-pluginprocess.dir/pluginprocess.c.o
../src/libs/pluginprocess/pluginprocess.c: In function ‘getPipename’:
../src/libs/pluginprocess/pluginprocess.c:288:2: warning: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
strncpy (pipename, directoryName, strlen (directoryName));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/libs/pluginprocess/pluginprocess.c:289:2: warning: ‘strncpy’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
strncpy (pipename + strlen (directoryName), suffix, strlen (suffix) + 1);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/libs/pluginprocess/pluginprocess.c:289:54: note: length computed here
strncpy (pipename + strlen (directoryName), suffix, strlen (suffix) + 1);
                                                    ^~~~~~~~~~~~~~~
[298/747] Building C object src/libs/elektra/CMakeFiles/elektra-core.dir/keyset.c.o
../src/libs/elektra/keyset.c: In function ‘ksCut’:
../src/libs/elektra/keyset.c:1089:5: warning: ‘strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation]
    strncpy (newname + 2, "spec", 4);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/libs/elektra/keyset.c:1097:5: warning: ‘strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation]
    strncpy (newname + 2, "proc", 4);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/libs/elektra/keyset.c:1105:5: warning: ‘strncpy’ output truncated before terminating nul copying 3 bytes from a string of the same length [-Wstringop-truncation]
    strncpy (newname + 3, "dir", 3);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/libs/elektra/keyset.c:1113:5: warning: ‘strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation]
    strncpy (newname + 2, "user", 4);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/libs/elektra/keyset.c:1121:5: warning: ‘strncpy’ output truncated before terminating nul copying 6 bytes from a string of the same length [-Wstringop-truncation]
    strncpy (newname, "system", 6);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/libs/elektra/keyset.c: In function ‘elektraLookupByCascading’:
../src/libs/elektra/keyset.c:1801:3: warning: ‘strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation]
strncpy (newname + 2, "spec", 4);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/libs/elektra/keyset.c:1832:2: warning: ‘strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation]
strncpy (newname + 2, "proc", 4);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/libs/elektra/keyset.c:1841:3: warning: ‘strncpy’ output truncated before terminating nul copying 3 bytes from a string of the same length [-Wstringop-truncation]
strncpy (newname + 3, "dir", 3);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/libs/elektra/keyset.c:1851:3: warning: ‘strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation]
strncpy (newname + 2, "user", 4);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/libs/elektra/keyset.c:1861:3: warning: ‘strncpy’ output truncated before terminating nul copying 6 bytes from a string of the same length [-Wstringop-truncation]
strncpy (newname, "system", 6);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[414/747] Building C object src/libs/elektra/CMakeFiles/elektra.dir/keyset.c.o
../src/libs/elektra/keyset.c: In function ‘ksCut’:
../src/libs/elektra/keyset.c:1089:5: warning: ‘strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation]
    strncpy (newname + 2, "spec", 4);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/libs/elektra/keyset.c:1097:5: warning: ‘strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation]
    strncpy (newname + 2, "proc", 4);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/libs/elektra/keyset.c:1105:5: warning: ‘strncpy’ output truncated before terminating nul copying 3 bytes from a string of the same length [-Wstringop-truncation]
    strncpy (newname + 3, "dir", 3);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/libs/elektra/keyset.c:1113:5: warning: ‘strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation]
    strncpy (newname + 2, "user", 4);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/libs/elektra/keyset.c:1121:5: warning: ‘strncpy’ output truncated before terminating nul copying 6 bytes from a string of the same length [-Wstringop-truncation]
    strncpy (newname, "system", 6);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/libs/elektra/keyset.c: In function ‘elektraLookupByCascading’:
../src/libs/elektra/keyset.c:1801:3: warning: ‘strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation]
strncpy (newname + 2, "spec", 4);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/libs/elektra/keyset.c:1832:2: warning: ‘strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation]
strncpy (newname + 2, "proc", 4);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/libs/elektra/keyset.c:1841:3: warning: ‘strncpy’ output truncated before terminating nul copying 3 bytes from a string of the same length [-Wstringop-truncation]
strncpy (newname + 3, "dir", 3);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/libs/elektra/keyset.c:1851:3: warning: ‘strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation]
strncpy (newname + 2, "user", 4);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/libs/elektra/keyset.c:1861:3: warning: ‘strncpy’ output truncated before terminating nul copying 6 bytes from a string of the same length [-Wstringop-truncation]
strncpy (newname, "system", 6);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[638/747] Building C object tests/cframework/CMakeFiles/cframework.dir/tests.c.o
../tests/cframework/tests.c: In function ‘init’:
../tests/cframework/tests.c:53:3: warning: ‘strncpy’ specified bound 4096 equals destination size [-Wstringop-truncation]
strncpy (srcdir, argv[1], sizeof (srcdir));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[747/747] Linking CXX executable bin/testkdb_simple
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment