https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120731
--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Gaius Mulley <ga...@gcc.gnu.org>: https://gcc.gnu.org/g:fc276742e0db337c4d13e6c474abafd4796a6b69 commit r16-1608-gfc276742e0db337c4d13e6c474abafd4796a6b69 Author: Gaius Mulley <gaiusm...@gmail.com> Date: Sun Jun 22 04:13:26 2025 +0100 [PR modula2/120731] error in Strings.Pos causing sigsegv This patch corrects the m2log library procedure function Strings.Pos which incorrectly sliced the wrong component of the source string. The incorrect slice could cause a sigsegv if negative slice indices were generated. gcc/m2/ChangeLog: PR modula2/120731 * gm2-libs-log/Strings.def (Delete): Rewrite comment. * gm2-libs-log/Strings.mod (Pos): Rewrite. (PosLower): New procedure function. gcc/testsuite/ChangeLog: PR modula2/120731 * gm2/pimlib/logitech/run/pass/teststrings.mod: New test. Signed-off-by: Gaius Mulley <gaiusm...@gmail.com>