diff options
author | Justin Squirek <squirek@adacore.com> | 2022-06-15 02:03:48 +0000 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2022-07-06 13:29:48 +0000 |
commit | 870518bfe257908095eb8d299fb0bbf14a4d2920 (patch) | |
tree | 50371677937274f5569a99aba67a73bed5438bf5 /gcc/ada/gcc-interface | |
parent | 0d7fbcf10f0d2b375a29fc6c184142f68c7f7da7 (diff) | |
download | gcc-870518bfe257908095eb8d299fb0bbf14a4d2920.zip gcc-870518bfe257908095eb8d299fb0bbf14a4d2920.tar.gz gcc-870518bfe257908095eb8d299fb0bbf14a4d2920.tar.bz2 |
[Ada] Indexing error when calling GNAT.Regpat.Match
This patch corrects an error in the compiler whereby a buffer sizing
error fails to get raised when compiling a regex expression with an
insufficiently sized Pattern_Matcher as the documentation indicated.
This, in turn, could lead to indexing errors when attempting to call
Match with the malformed regex program buffer.
gcc/ada/
* libgnat/s-regpat.adb, libgnat/s-regpat.ads (Compile): Add a
new defaulted parameter Error_When_Too_Small to trigger an
error, if specified true, when Matcher is too small to hold the
compiled regex program.
Diffstat (limited to 'gcc/ada/gcc-interface')
0 files changed, 0 insertions, 0 deletions