Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 686490 - games-strategy/colobot-0.1.11 : /.../string_fortified.h:106:34: error: char* _builtin_strncpy(char*, const char*, long unsigned int) specified bound 20 equals destination size [-Werror=stringop-truncation]
Summary: games-strategy/colobot-0.1.11 : /.../string_fortified.h:106:34: error: char* ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
: 694406 (view as bug list)
Depends on: 687994
Blocks:
  Show dependency tree
 
Reported: 2019-05-21 17:24 UTC by Toralf Förster
Modified: 2019-09-23 17:48 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,15.24 KB, text/plain)
2019-05-21 17:24 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,227.42 KB, text/plain)
2019-05-21 17:24 UTC, Toralf Förster
Details
environment (environment,109.55 KB, text/plain)
2019-05-21 17:25 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,11.98 KB, application/x-bzip)
2019-05-21 17:25 UTC, Toralf Förster
Details
games-strategy:colobot-0.1.11:20190521-123250.log (games-strategy:colobot-0.1.11:20190521-123250.log,101.37 KB, text/plain)
2019-05-21 17:25 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,6.70 KB, application/x-bzip)
2019-05-21 17:25 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,30.77 KB, application/x-bzip)
2019-05-21 17:25 UTC, Toralf Förster
Details
patch (Bug_686490.patch,662 bytes, patch)
2019-07-07 18:16 UTC, lekto
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2019-05-21 17:24:54 UTC
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"
Comment 1 Toralf Förster gentoo-dev 2019-05-21 17:24:57 UTC
Created attachment 577488 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-05-21 17:24:59 UTC
Created attachment 577490 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2019-05-21 17:25:02 UTC
Created attachment 577492 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2019-05-21 17:25:05 UTC
Created attachment 577494 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2019-05-21 17:25:07 UTC
Created attachment 577496 [details]
games-strategy:colobot-0.1.11:20190521-123250.log
Comment 6 Toralf Förster gentoo-dev 2019-05-21 17:25:10 UTC
Created attachment 577498 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2019-05-21 17:25:13 UTC
Created attachment 577500 [details]
temp.tbz2
Comment 8 lekto 2019-07-07 18:16:06 UTC
Created attachment 582130 [details, diff]
patch

Patch for this bug, playing colobot for a while and it works for me.
Comment 9 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-09-23 17:43:55 UTC
Fixed upstream in 0.1.12.  They used sizeof()-1, so the same result.
Comment 10 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-09-23 17:48:00 UTC
*** Bug 694406 has been marked as a duplicate of this bug. ***