In function ‘char* strncpy(char*, const char*, size_t)’, inlined from ‘void Gfx::ModelOutput::WriteOldModel(const Gfx::CModel&, std::ostream&)’ at /var/tmp/portage/games-strategy/colobot-0.1.11/work/colobot-colobot-gold-0.1.11-alpha/src/graphics/model/model_output.cpp:331:16: /usr/include/bits/string_fortified.h:106:34: error: ‘char* __builtin_strncpy(char*, const char*, long unsigned int)’ specified bound 20 equals destination size [-Werror=stringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1plus: all warnings being treated as errors ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.0-no-multilib-hardened_20190518-062149 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-9.1.0 * Available Python interpreters, in order of preference: [1] python3.6 [2] python2.7 (fallback) [3] pypy3 (fallback) Available Ruby profiles: [1] ruby24 (with Rubygems) [2] ruby25 (with Rubygems) [3] ruby26 (with Rubygems) * Available Rust versions: [1] rust-1.34.2 * java-config: The following VMs are available for generation-2: emerge -qpvO games-strategy/colobot [ebuild N ] games-strategy/colobot-0.1.11 USE="openal -devbuild -doc -test -tools"
Created attachment 577488 [details] emerge-info.txt
Created attachment 577490 [details] emerge-history.txt
Created attachment 577492 [details] environment
Created attachment 577494 [details] etc.portage.tbz2
Created attachment 577496 [details] games-strategy:colobot-0.1.11:20190521-123250.log
Created attachment 577498 [details] logs.tbz2
Created attachment 577500 [details] temp.tbz2
Created attachment 582130 [details, diff] patch Patch for this bug, playing colobot for a while and it works for me.
Fixed upstream in 0.1.12. They used sizeof()-1, so the same result.
*** Bug 694406 has been marked as a duplicate of this bug. ***