https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118782
--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Eric Botcazou <[email protected]>: https://gcc.gnu.org/g:2c689389425420dfdcb8538f9e7f402b4043b7b5 commit r16-4608-g2c689389425420dfdcb8538f9e7f402b4043b7b5 Author: Eric Botcazou <[email protected]> Date: Fri Oct 24 17:39:57 2025 +0200 Ada: Fix segfault on file without final EOL with -gnatyc The compiler overruns the source file buffer. gcc/ada/ PR ada/118782 * styleg.adb (Is_Box_Comment): Also stop the loop at EOF.
