Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 665288 - games-strategy/colobot-0.1.11 : /.../screen_io.cpp:84:19: error: - directive writing 3 bytes into a region of size between 1 and 100 [-Werror=format-overflow=]
Summary: games-strategy/colobot-0.1.11 : /.../screen_io.cpp:84:19: error: - directive ...
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:
Depends on: 687994
Blocks:
  Show dependency tree
 
Reported: 2018-09-05 16:45 UTC by Toralf Förster
Modified: 2019-09-23 17:42 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.66 KB, text/plain)
2018-09-05 16:45 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,244.20 KB, text/plain)
2018-09-05 16:45 UTC, Toralf Förster
Details
environment (environment,108.35 KB, text/plain)
2018-09-05 16:45 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,25.58 KB, application/x-bzip)
2018-09-05 16:45 UTC, Toralf Förster
Details
games-strategy:colobot-0.1.11:20180905-104938.log (games-strategy:colobot-0.1.11:20180905-104938.log,291.65 KB, text/plain)
2018-09-05 16:45 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,5.19 KB, application/x-bzip)
2018-09-05 16:45 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,33.95 KB, application/x-bzip)
2018-09-05 16:46 UTC, Toralf Förster
Details
patch (patch.patch,446 bytes, patch)
2018-12-13 22:46 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 2018-09-05 16:45:40 UTC
/var/tmp/portage/games-strategy/colobot-0.1.11/work/colobot-colobot-gold-0.1.11-alpha/src/ui/screen/screen_io.cpp: In member function ‘void Ui::CScreenIO::IOReadName()’:
/var/tmp/portage/games-strategy/colobot-0.1.11/work/colobot-colobot-gold-0.1.11-alpha/src/ui/screen/screen_io.cpp:84:19: error: ‘ - ’ directive writing 3 bytes into a region of size between 1 and 100 [-Werror=format-overflow=]
     sprintf(name, "%s - %s %d", line, resume.c_str(), m_main->GetLevelRank());
                   ^~~~~~~~~~~~
In file included from /usr/include/stdio.h:862,

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-systemd_20180829-185703

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-8.2.0 *

Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.6
  [3]   python2.7 (fallback)
  [4]   pypy (fallback)
Available Ruby profiles:
  [1]   ruby23 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
java-config:
The following VMs are available for generation-2:


emerge -qpv games-strategy/colobot
[ebuild  N    ] games-strategy/colobot-0.1.11  USE="openal -devbuild -doc -test -tools"
Comment 1 Toralf Förster gentoo-dev 2018-09-05 16:45:43 UTC
Created attachment 545996 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-09-05 16:45:46 UTC
Created attachment 545998 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2018-09-05 16:45:49 UTC
Created attachment 546000 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2018-09-05 16:45:52 UTC
Created attachment 546002 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2018-09-05 16:45:55 UTC
Created attachment 546004 [details]
games-strategy:colobot-0.1.11:20180905-104938.log
Comment 6 Toralf Förster gentoo-dev 2018-09-05 16:45:58 UTC
Created attachment 546006 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2018-09-05 16:46:01 UTC
Created attachment 546008 [details]
temp.tbz2
Comment 8 lekto 2018-12-13 22:46:09 UTC
Created attachment 557750 [details, diff]
patch

Looks like increased size of array fixed error, but I not 100% sure that patch don't break something else.
Comment 9 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-09-23 17:42:39 UTC
FWICS upstream switched to using std::string there in 0.1.12, so the issue should be fixed.