Fix out-of-bounds read of exitreversaltable in exit1() - #34
Closed
ApolloniaUK wants to merge 1 commit into
Closed
Conversation
Direction codes beyond 19 (The Price of Magik passes one) indexed past the 20-byte table. Treat such codes as unmapped (0xff), extending the v5.2 fix that covered codes 16-19. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
ApolloniaUK
marked this pull request as draft
July 27, 2026 17:35
ApolloniaUK
marked this pull request as ready for review
July 27, 2026 17:39
ApolloniaUK
marked this pull request as draft
July 28, 2026 08:48
ApolloniaUK
marked this pull request as ready for review
July 28, 2026 08:50
Owner
|
Hi Alan, thanks for this. I wasn't entirely happy with the commit message Claude created, and I'm not entirely thrilled at having Claude as a contributor to any of my personal repos, so I changed the comment and committed it as 67fc925. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi David,
I’ve recently got back to working on my Mac port with a view to incorporating version 5.2 changes and seriously modernizing the code - basically a complete rewrite moving from old Mac Toolbox to AppKit or SwiftUi.
As part of my preparation I’ve been using Claude Code (Fable 5) to give Andreas’s test harness a very thorough workout so I could be sure my test games were all exactly matching Andreas’s. In the process Fable found a tiny bug in the interpreter with the test version of The Price of Magik. Here's Fable's report:
I had it patch level9.c and I’ve merged that fix from my dev branch back into master. Here it is in this pull request if you are interested. I haven’t bumped version number or changed copyright date - didn’t know whether you would think either necessary for such a tiny tweak.
HTH.
Alan.
(Alan Staniforth)