Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 351013 - sci-libs/grib_api _FORTIFY_SOURCE indicates presence of overflow
Summary: sci-libs/grib_api _FORTIFY_SOURCE indicates presence of overflow
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: fortify-source
  Show dependency tree
 
Reported: 2011-01-07 18:18 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2011-04-25 09:36 UTC (History)
1 user (show)

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


Attachments
Build log (grib_api-1.9.5-r1:20110102-015314.log,327.00 KB, text/plain)
2011-01-07 18:18 UTC, Diego Elio Pettenò (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
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.

Thanks,
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,};
memcpy(&lval,s,8);

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 <jlec@gentoo.org> grib_api-1.9.5-r1.ebuild,
+  +files/grib_api-1.9.5-32bit.patch:
+  _FORTIFY_SOURCE indicates presence of overflow Fix, #351013
+