[Ada] Fix wild memory access for pragma Warnings (On|Off, "*")
Eric Botcazou
botcazou@adacore.com
Wed Oct 7 20:09:01 GMT 2026
This occurs when the pragma is in a configuration file. The problem is that
Find_Direct_Name manually walks the scope stack while it is still empty.
Tested on x86-64/Linux, applied on the mainline, 16, 15 and 14 branches.
2026-10-07 Eric Botcazou <ebotcazou@adacore.com>
PR ada/126125
* sem_ch8.adb (Find_Direct_Name): Add missing guard to the manual
walk of the scope stack used to cope with the Rtsfind mechanism.
--
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr126125.diff
Type: text/x-patch
Size: 408 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20261007/b5d2fdb6/attachment.bin>
More information about the Gcc-patches
mailing list