This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Ada] fix spitbol bug


Tested on i686-linux, committed on trunk.

If a one character string is used as a parameter to one of the spitbol
pattern matching routines, and the lower bound is other than one (this
most typically happens from the use of a slice), then the routine may
malfunction. This is because there was an explicit use of Str (0) which
should have been Str (Str'First) in S_To_PE.

See gnat.dg/spipaterr.adb

2006-10-31  Robert Dewar  <dewar@adacore.com>

	* g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First

Attachment: difs
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]