overflow warning on Linux
Closed this issue · 0 comments
stefantalpalaru commented
In function ‘getcwd’,
inlined from ‘getCurrentDir__Hvgd8bnDwqVEMIgF15tzkw’ at /mnt/sde1/storage/nim-beacon-chain-clean/vendor/nim-stew/stew/io2.nim:412:35,
inlined from ‘init__LOpexeSSOxNbrTjyAhR0Ug’ at /mnt/sde1/storage/nim-beacon-chain-clean/beacon_chain/beacon_node.nim:291:87:
/usr/include/bits/unistd.h:217:10: warning: ‘__getcwd_alias’ writing 1024 bytes into a region of size 1 overflows the destination [-Wstringop-overflow=]
217 | return __getcwd_alias (__buf, __size);
| ^
/usr/include/bits/unistd.h: In function ‘init__LOpexeSSOxNbrTjyAhR0Ug’:
/usr/include/bits/unistd.h:197:14: note: in a call to function ‘__getcwd_alias’ declared with attribute ‘write_only (1, 2)’
197 | extern char *__REDIRECT_NTH (__getcwd_alias,
| ^