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

Bug 351013

Summary: sci-libs/grib_api _FORTIFY_SOURCE indicates presence of overflow
Product: Gentoo Linux Reporter: Diego Elio Pettenò (RETIRED) <flameeyes>
Component: Current packagesAssignee: Gentoo Science Related Packages <sci>
Severity: major CC: hardened
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 259417    
Attachments: Build log

Description Diego Elio Pettenò (RETIRED) gentoo-dev 2011-01-07 18:18:03 UTC
You're receiving this bug because the package in Summary has produced _FORTIFY_SOURCE related warnings indicating the presence of a sure overflow in a static buffer.

Even though this is not always an indication of a security problem it might even be. So please check this out ASAP.

By the way, _FORTIFY_SOURCE is disabled when you disable optimisation, so don't try finding out the cause using -O0.

Your friendly neighborhood tinderboxer
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2011-01-07 18:18:24 UTC
Created attachment 259195 [details]
Build log
Comment 2 Sébastien Fabbro (RETIRED) gentoo-dev 2011-01-08 22:48:15 UTC
not reproducible on amd64.
Comment 3 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2011-01-08 23:14:11 UTC
(In reply to comment #2)
> not reproducible on amd64.
yup, offending code:

unsigned long lval;
unsigned char s[8]={0,};

on amd64 lval has 8 bytes, on x86 only 4.
Comment 4 Justin Lecher (RETIRED) gentoo-dev 2011-04-25 09:36:50 UTC
+  25 Apr 2011; Justin Lecher <> grib_api-1.9.5-r1.ebuild,
+  +files/grib_api-1.9.5-32bit.patch:
+  _FORTIFY_SOURCE indicates presence of overflow Fix, #351013