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

Bug 641250

Summary: net-analyzer/sarg-2.3.10 : util.c:684:25: error: %02d directive writing between 2 and 3 bytes into a region of size between 0 and 6 [-Werror=format-overflow=]
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Netmon project <netmon>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=645006
https://bugs.gentoo.org/show_bug.cgi?id=653220
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 617524    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
net-analyzer:sarg-2.3.10:20171216-031045.log
temp.tbz2

Description Toralf Förster gentoo-dev 2017-12-16 09:06:34 UTC
                  ^
util.c: In function ‘buildtime’:
util.c:684:25: error: ‘%02d’ directive writing between 2 and 3 bytes into a region of size between 0 and 6 [-Werror=format-overflow=]
  sprintf(buf,"%02d:%02d:%02d",hor,min,sec);
                         ^~~~
util.c:684:14: note: directive argument in the range [-59, 59]

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-desktop-gnome-systemd_libressl_20171213-174318

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.2.0 *

Available Python interpreters, in order of preference:
  [1]   python3.5
  [2]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby22 (with Rubygems) *
java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.6.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

emerge -qpv net-analyzer/sarg
[ebuild  N    ] net-analyzer/sarg-2.3.10  USE="gd ldap pcre"
Comment 1 Toralf Förster gentoo-dev 2017-12-16 09:06:37 UTC
Created attachment 510262 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-12-16 09:06:40 UTC
Created attachment 510264 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2017-12-16 09:06:43 UTC
Created attachment 510266 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2017-12-16 09:06:47 UTC
Created attachment 510268 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2017-12-16 09:06:50 UTC
Created attachment 510270 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2017-12-16 09:06:53 UTC
Created attachment 510272 [details]
net-analyzer:sarg-2.3.10:20171216-031045.log
Comment 7 Toralf Förster gentoo-dev 2017-12-16 09:06:56 UTC
Created attachment 510274 [details]
temp.tbz2
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2017-12-17 16:07:48 UTC
Fixed in -r1.