commit | 1fde86bba55ea61b56f79798c6ac4cc6808e51a1 | [log] [tgz] |
---|---|---|
author | Justin Squirek <squirek@adacore.com> | Thu May 26 15:15:46 2022 +0000 |
committer | Pierre-Marie de Rodat <derodat@adacore.com> | Mon Jul 04 07:45:56 2022 +0000 |
tree | 6439cf96a8e51ea69a2c5bc142e22501a3d9b7cf | |
parent | 3319015b0a498ed1050d6910f75430a6fc401f50 [diff] |
[Ada] Single character argument in call to Quote_Argument raises error This patch corrects an issue in the compiler whereby calling Quote_Argument with an argument that is of size 1 may lead to a CONSTRAINT_ERROR raised at runtime due to an undersized buffer. gcc/ada/ * libgnat/s-os_lib.adb (Quote_Argument): Modify the result buffer size calculation to handle the case where Arg'Length is 1.