Mailinglist Archive: opensuse-bugs (4172 mails)

< Previous Next >
[Bug 513036] New: gnome-games-2.26.1-1.19: array subscript is above array bounds
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Sun, 14 Jun 2009 15:43:02 -0600
  • Message-id: <bug-513036-21960@xxxxxxxxxxxxxxxxxxxxxxxx/>
http://bugzilla.novell.com/show_bug.cgi?id=513036


Summary: gnome-games-2.26.1-1.19: array subscript is above
array bounds
Classification: openSUSE
Product: openSUSE 11.2
Version: Factory
Platform: All
OS/Version: openSUSE 11.1
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Other
AssignedTo: bnc-team-screening@xxxxxxxxxxxxxxxxxxxxxx
ReportedBy: dcb314@xxxxxxxxxxx
QAContact: qa@xxxxxxx
Found By: ---


I just tried to build Factory package gnome-games-2.26.1-1.19
and the build said

about.c:305:2: warning: array subscript is above array bounds

The source code is

gdk_draw_layout(pixmap, GTK_WIDGET(background)->style->text_gc[5],
(250 - rect.width) / 2, loc + l, layout);

but

/usr/include/gtk-2.0/gtk/gtkstyle.h: GdkGC *text_gc[5];

Clearly broken code. I agree with the compiler. Suggest code rework.

--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >
Follow Ups