Bug 240922 - Enable "array subscript is above array bounds" gcc warnings?
Summary: Enable "array subscript is above array bounds" gcc warnings?
Status: RESOLVED FIXED
: 239170 239174 239491 239954 239956 239958 240197 240890 240891 240893 240894 240898 240901 242268 242363 242365 245534 245535 (view as bug list)
Alias: None
Product: openSUSE 11.1
Classification: openSUSE
Component: Other (show other bugs)
Version: Factory
Hardware: Other Other
: P4 - Low : Minor (vote)
Target Milestone: ---
Assignee: Marcus Meissner
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on: 235591 356549 356556 359899
Blocks:
  Show dependency treegraph
 
Reported: 2007-01-31 22:07 UTC by Stefan Dirsch
Modified: 2008-10-27 23:08 UTC (History)
6 users (show)

See Also:
Found By: Development
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Dirsch 2007-01-31 22:07:03 UTC
I wonder whether we should we enable "array subscript is above array bounds" gcc warnings (RPM_OPT_FLAGS) and even trigger a fatal build error? I think we could safe David's resources (rebuilding each package and filing bugreports) and Novell's resources (bugreport handling) as well.
Comment 1 Stefan Dirsch 2007-01-31 22:11:39 UTC
*** Bug 240890 has been marked as a duplicate of this bug. ***
Comment 2 Stefan Dirsch 2007-01-31 22:12:33 UTC
*** Bug 240891 has been marked as a duplicate of this bug. ***
Comment 3 Stefan Dirsch 2007-01-31 22:13:41 UTC
*** Bug 240893 has been marked as a duplicate of this bug. ***
Comment 4 Stefan Dirsch 2007-01-31 22:14:09 UTC
*** Bug 240894 has been marked as a duplicate of this bug. ***
Comment 5 Stefan Dirsch 2007-01-31 22:15:36 UTC
*** Bug 240898 has been marked as a duplicate of this bug. ***
Comment 6 Dirk Mueller 2007-01-31 22:26:17 UTC
We're planning this, lets just give it time to see if we have false positives with the warning (one is known already) and then we'll patch it in. it is in -Wall anyway. 
Comment 7 Stefan Dirsch 2007-01-31 22:29:37 UTC
*** Bug 240901 has been marked as a duplicate of this bug. ***
Comment 8 Thomas Fehr 2007-02-01 08:35:15 UTC
*** Bug 239170 has been marked as a duplicate of this bug. ***
Comment 9 Ladislav Michnovic 2007-02-01 10:02:45 UTC
*** Bug 239491 has been marked as a duplicate of this bug. ***
Comment 10 Klaus Kämpf 2007-02-02 09:19:49 UTC
*** Bug 239954 has been marked as a duplicate of this bug. ***
Comment 11 Dirk Mueller 2007-02-02 22:53:37 UTC
there are several valid fixes, but also quite some false positives (well, not actually false positives, but code written in a way where the array overflow will just "work"). 

currently this can't be enabled unconditionally. 
Comment 12 Stefan Dirsch 2007-02-05 21:55:30 UTC
*** Bug 242365 has been marked as a duplicate of this bug. ***
Comment 13 Mike Fabian 2007-02-06 11:41:52 UTC
*** Bug 242268 has been marked as a duplicate of this bug. ***
Comment 14 Mike Fabian 2007-02-06 11:43:09 UTC
*** Bug 242363 has been marked as a duplicate of this bug. ***
Comment 15 Petr Ostadal 2007-02-08 13:02:13 UTC
*** Bug 240197 has been marked as a duplicate of this bug. ***
Comment 16 Mike Fabian 2007-02-14 18:47:57 UTC
*** Bug 245534 has been marked as a duplicate of this bug. ***
Comment 17 Mike Fabian 2007-02-14 18:51:32 UTC
*** Bug 245535 has been marked as a duplicate of this bug. ***
Comment 18 Petr Gajdos 2007-03-05 11:05:53 UTC
*** Bug 239956 has been marked as a duplicate of this bug. ***
Comment 19 Petr Gajdos 2007-03-07 09:50:25 UTC
*** Bug 239174 has been marked as a duplicate of this bug. ***
Comment 20 Petr Gajdos 2007-03-13 15:35:38 UTC
*** Bug 239958 has been marked as a duplicate of this bug. ***
Comment 21 Stefan Dirsch 2007-05-12 10:28:16 UTC
Egbert, JFYI. Since Matthias or me is in Cc of this bugreport or the reported itself, it might be interesting for you as well.
Comment 22 Stefan Dirsch 2007-05-12 10:42:30 UTC
JFYI, Matthias. This is a bugreport, which is assigned to Egbert/me or with Egbert/me in CC or reported by Egbert/me.
Comment 23 Marcus Meissner 2007-08-11 10:20:45 UTC
at least gcc42 in autobuild is generating them.

$ cd ~meissner/xx
$ grep array.subscript Logfile.*|wc -l
1743
$

quite some matches (some false positives though I think).
Comment 24 Marcus Meissner 2008-05-23 10:14:31 UTC
needs occasional review, but nothing we can do right now
Comment 25 Marcus Meissner 2008-10-27 23:08:29 UTC
submitted a post-build-checks with this as "W"arning detection.