From 44efc33d5ab9dc22a13590737b7e595cb806271a Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Mon, 30 Oct 2023 13:22:31 -0700 Subject: [PATCH] Add tip for 1989/westley ver2 bug to bugs.md --- bugs.md | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/bugs.md b/bugs.md index d83c01ed7..a8f02e767 100644 --- a/bugs.md +++ b/bugs.md @@ -566,9 +566,24 @@ It should be noted that in additional to rot13 names there is code that is the reverse of other code (also wrt names). See the source file and the README.md (in the author's remarks) for more details. -Fixing the (Mis)feature is likely to be a difficult challenge. -You are welcome to try and fix it if you can! +Fixing the (Mis)feature is likely to be a very difficult challenge. You are +welcome to try and fix it if you can! +### A tip from Cody: + +The reason this is crashing is that the array `irk` is being accessed way out of +bounds by the int `gnat`. For instance: + +``` +Program terminated with signal SIGSEGV, Segmentation fault. +#0 0x0000000000401335 in main (ABBA@entry=, tang@entry=, gnat@entry=, Near@entry=) + at ver2.c:23 +23 &&gnat!({)Near,noon,/*krelc*/)<0&&(Near= - irk[-gnat--]-2)))&&main(ABBA, +(gdb) p gnat +$1 = -518733305 +``` + +The real trouble is that the code is generated and in a complex way. # 1990