|
From: | JFTrudeau at cvty dot com |
Subject: | [Bug binutils/12226] New: binutils: readelf.c:11200: error: array subscript is above array bounds |
Date: | Thu, 18 Nov 2010 01:27:00 +0000 |
http://sourceware.org/bugzilla/show_bug.cgi?id=12226 Summary: binutils: readelf.c:11200: error: array subscript is above array bounds Product: binutils Version: 2.20 Status: NEW Severity: normal Priority: P2 Component: binutils AssignedTo: address@hidden ReportedBy: address@hidden Created attachment 5127 --> http://sourceware.org/bugzilla/attachment.cgi?id=5127 Correct compiler error binutils: 2.20.1 gcc version 4.3.3 (GCC) platform: AIX adatx028 3 5 000D1D5A4C00 powerpc-ibm-aix5.3.0.0 Got a "fatal" warning when building binutils-2.20.1: readelf.c:11200: error: array subscript is above array bounds 11200: while ((arch->arhdr.ar_name[j] != '/') && (j < 16)) This is a bug since the array index is being referenced *before* it is bounds checked. The attached patch corrected this error and compilation completed. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Prev in Thread] | Current Thread | [Next in Thread] |