https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118782
--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-15 branch has been updated by Eric Botcazou <[email protected]>: https://gcc.gnu.org/g:e4ee38ae7ad69dd6bea96665a2f7bc6887cd3145 commit r15-10447-ge4ee38ae7ad69dd6bea96665a2f7bc6887cd3145 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.
