This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/36785] Segmentation fault in Gnat.Regexp
- From: "baldrick at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Feb 2009 13:36:14 -0000
- Subject: [Bug ada/36785] Segmentation fault in Gnat.Regexp
- References: <bug-36785-13647@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from baldrick at gcc dot gnu dot org 2009-02-17 13:36 -------
If I unsupress checks in System.Regexp.Compile.Create_Secondary_Table,
then I get
"raised CONSTRAINT_ERROR : s-regexp.adb:1161 index check failed"
here:
1160 for Column in 0 .. Alphabet_Size loop
1161 Meta_States (Nb_State + 1) := (others => False); -- Here
1162 Temp_State_Not_Null := False;
The reason is that Nb_State + 1 is beyond Meta_States'Last.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36785