ioBroker / ioBroker.discovery

This adapter tries to discover all known devices
MIT License
28 stars 48 forks source link

warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1005 #184

Closed Feuer-sturm closed 3 years ago

Feuer-sturm commented 3 years ago

Admin 5.1.25 Discovery Adapater 2.7.2

Steps to reproduce

Log file during update: with warning in the beginning:

$ iobroker upgrade discovery@2.7.3

Update discovery from @2.7.2 to @2.7.3

NPM version: 6.14.15npm install iobroker.discovery@2.7.3 --loglevel error --prefix "/opt/iobroker" (System call)

../src/serialport_unix.cpp: In function 'int setup(int, OpenBaton*)':../src/serialport_unix.cpp:166:5: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1005 [-Wformat-truncation=] int setup(int fd, OpenBaton *data) { ^~~~~

In file included from /usr/include/stdio.h:862:0, from ../src/serialport.h:10, from ../src/serialport_unix.cpp:2:/usr/include/x86_64-linux-gnu/bits/stdio2.h:65:44: note: '__builtin___snprintf_chk' output 20 or more bytes (assuming 1043) into a destination of size 1024 __bos (__s), __fmt, __va_arg_pack ()); ^

../src/serialport_unix.cpp: In function 'void EIO_Open(uv_work_t*)':../src/serialport_unix.cpp:79:6: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1003 [-Wformat-truncation=] void EIO_Open(uv_work_t* req) { ^~~~~~~~

In file included from /usr/include/stdio.h:862:0, from ../src/serialport.h:10, from ../src/serialport_unix.cpp:2:/usr/include/x86_64-linux-gnu/bits/stdio2.h:65:44: note: '__builtin___snprintf_chk' output 22 or more bytes (assuming 1045) into a destination of size 1024 __bos (__s), __fmt, __va_arg_pack ()); ^

upload [16] discovery.admin /opt/iobroker/node_modules/iobroker.discovery/admin/words.js words.js application/javascript

upload [15] discovery.admin /opt/iobroker/node_modules/iobroker.discovery/admin/translateTools.js translateTools.js application/javascript

upload [14] discovery.admin /opt/iobroker/node_modules/iobroker.discovery/admin/settings_m.html settings_m.html text/html

upload [13] discovery.admin /opt/iobroker/node_modules/iobroker.discovery/admin/settings.html settings.html text/html

upload [12] discovery.admin /opt/iobroker/node_modules/iobroker.discovery/admin/index_m.html index_m.html text/html

upload [11] discovery.admin /opt/iobroker/node_modules/iobroker.discovery/admin/index.html index.html text/html

upload [10] discovery.admin /opt/iobroker/node_modules/iobroker.discovery/admin/i18n/zh-cn/translations.json i18n/zh-cn/translations.json application/json

upload [9] discovery.admin /opt/iobroker/node_modules/iobroker.discovery/admin/i18n/ru/translations.json i18n/ru/translations.json application/json

upload [8] discovery.admin /opt/iobroker/node_modules/iobroker.discovery/admin/i18n/pt/translations.json i18n/pt/translations.json application/json

upload [7] discovery.admin /opt/iobroker/node_modules/iobroker.discovery/admin/i18n/pl/translations.json i18n/pl/translations.json application/json

upload [6] discovery.admin /opt/iobroker/node_modules/iobroker.discovery/admin/i18n/nl/translations.json i18n/nl/translations.json application/json

upload [5] discovery.admin /opt/iobroker/node_modules/iobroker.discovery/admin/i18n/it/translations.json i18n/it/translations.json application/json

upload [4] discovery.admin /opt/iobroker/node_modules/iobroker.discovery/admin/i18n/fr/translations.json i18n/fr/translations.json application/json

upload [3] discovery.admin /opt/iobroker/node_modules/iobroker.discovery/admin/i18n/es/translations.json i18n/es/translations.json application/json

upload [2] discovery.admin /opt/iobroker/node_modules/iobroker.discovery/admin/i18n/en/translations.json i18n/en/translations.json application/json

upload [1] discovery.admin /opt/iobroker/node_modules/iobroker.discovery/admin/i18n/de/translations.json i18n/de/translations.json application/json

upload [0] discovery.admin /opt/iobroker/node_modules/iobroker.discovery/admin/discovery.png discovery.png image/png

Adapter "discovery" updated

Process exited with code 0
Apollon77 commented 3 years ago

The usual npm build warnings ... depeds on npdejs version and serialport version how many you get :-) ignore