Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 665288

Summary: 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=]
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Michał Górny <mgorny>
Status: RESOLVED FIXED    
Severity: normal CC: lekto
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 687994    
Bug Blocks:    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
games-strategy:colobot-0.1.11:20180905-104938.log
logs.tbz2
temp.tbz2
patch

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.