https://projects.osmocom.org/
https://projects.osmocom.org/favicon.ico?1664741409
2018-07-26T14:56:59Z
Open Source Mobile Communications
libosmocore - Bug #3421: gcc 8.1.0 fails to build libosmocore: src/socket.c:599:2: error: ‘strncpy’ specified bound 108 equals destination size [-Werror=stringop-truncation]
https://projects.osmocom.org/issues/3421?journal_id=10480
2018-07-26T14:56:59Z
neels
nhofmeyr@sysmocom.de
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>In Progress</i></li><li><strong>Assignee</strong> set to <i>neels</i></li></ul><p>more:</p>
<pre>
../../../../src/libosmocore/src/gsm/ipa.c: In function ‘ipa_ccm_make_id_resp’:
../../../../src/libosmocore/src/gsm/ipa.c:266:5: error: ‘strncpy’ specified bound 64 equals destination size [-Werror=stringop-truncation]
strncpy(str, dev->swversion, IPA_STRING_MAX);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../src/libosmocore/src/gsm/ipa.c:262:5: error: ‘strncpy’ specified bound 64 equals destination size [-Werror=stringop-truncation]
strncpy(str, dev->equipvers, IPA_STRING_MAX);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../src/libosmocore/src/gsm/ipa.c:258:5: error: ‘strncpy’ specified bound 64 equals destination size [-Werror=stringop-truncation]
strncpy(str, dev->location2, IPA_STRING_MAX);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../src/libosmocore/src/gsm/ipa.c:254:5: error: ‘strncpy’ specified bound 64 equals destination size [-Werror=stringop-truncation]
strncpy(str, dev->location1, IPA_STRING_MAX);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../src/libosmocore/src/gsm/ipa.c:281:5: error: ‘strncpy’ specified bound 64 equals destination size [-Werror=stringop-truncation]
strncpy(str, dev->serno, IPA_STRING_MAX);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
</pre>
libosmocore - Bug #3421: gcc 8.1.0 fails to build libosmocore: src/socket.c:599:2: error: ‘strncpy’ specified bound 108 equals destination size [-Werror=stringop-truncation]
https://projects.osmocom.org/issues/3421?journal_id=10481
2018-07-26T15:03:23Z
neels
nhofmeyr@sysmocom.de
<ul></ul><pre>
In function ‘verify_pin.constprop’,
inlined from ‘main’ at ../../../src/libosmocore/utils/osmo-sim-test.c:358:2:
../../../src/libosmocore/utils/osmo-sim-test.c:77:2: error: ‘strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Werror=stringop-truncation]
strncpy(pindst, pin, strlen(pin));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
</pre>
libosmocore - Bug #3421: gcc 8.1.0 fails to build libosmocore: src/socket.c:599:2: error: ‘strncpy’ specified bound 108 equals destination size [-Werror=stringop-truncation]
https://projects.osmocom.org/issues/3421?journal_id=10482
2018-07-26T15:05:04Z
neels
nhofmeyr@sysmocom.de
<ul></ul><p>actually strncpy(pindst, pin, strlen(pin)); is on purpose, it verify_pin() <strong>wants</strong> to omit the terminating nul</p>
libosmocore - Bug #3421: gcc 8.1.0 fails to build libosmocore: src/socket.c:599:2: error: ‘strncpy’ specified bound 108 equals destination size [-Werror=stringop-truncation]
https://projects.osmocom.org/issues/3421?journal_id=10489
2018-07-26T15:24:33Z
neels
nhofmeyr@sysmocom.de
<ul><li><strong>% Done</strong> changed from <i>0</i> to <i>90</i></li></ul><p><a class="external" href="https://gerrit.osmocom.org/#/c/libosmocore/+/10174">https://gerrit.osmocom.org/#/c/libosmocore/+/10174</a><br /><a class="external" href="https://gerrit.osmocom.org/#/c/libosmocore/+/10175">https://gerrit.osmocom.org/#/c/libosmocore/+/10175</a><br /><a class="external" href="https://gerrit.osmocom.org/#/c/libosmocore/+/10176">https://gerrit.osmocom.org/#/c/libosmocore/+/10176</a></p>
libosmocore - Bug #3421: gcc 8.1.0 fails to build libosmocore: src/socket.c:599:2: error: ‘strncpy’ specified bound 108 equals destination size [-Werror=stringop-truncation]
https://projects.osmocom.org/issues/3421?journal_id=11300
2018-09-12T13:42:18Z
neels
nhofmeyr@sysmocom.de
<ul><li><strong>Status</strong> changed from <i>In Progress</i> to <i>Resolved</i></li><li><strong>% Done</strong> changed from <i>90</i> to <i>100</i></li></ul>