Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(developer): ensure call() detects invalid store in kmcmplib compiler #12263

Conversation

markcsinclair
Copy link
Contributor

Reorder the code in the call() section of GetXStringImpl() in the Compiler.cpp file of the kmcmplib compiler to ensure the invalid store check is done immediately after the search for the store.

Fixes: #12262

The appropriate test cases from the GetXStringImpl_type_c test in gtest-compiler-test.cpp will be included here (extending what was originally included in #11990

@keymanapp-test-bot skip

@keymanapp-test-bot
Copy link

keymanapp-test-bot bot commented Aug 22, 2024

User Test Results

Test specification and instructions

User tests are not required

Test Artifacts

markcsinclair added a commit that referenced this pull request Aug 22, 2024
…re-call-detects-invalid-store-in-kmcmplib-compiler

# Keyman Conventional Commit suggestions:
#
# - Link to a Sentry issue with git trailer:
#     Fixes: _MODULE_-_ID_
# - Give credit to co-authors:
#     Co-authored-by: _Name_ <_email_>
# - Use imperative, present tense ('attach' not 'attaches', 'attached' etc)
# - Don't include a period at the end of the title
# - Always include a blank line before trailers
# - More: https://github.com/keymanapp/keyman/wiki/Pull-Request-and-Commit-workflow-notes
@markcsinclair markcsinclair marked this pull request as ready for review August 22, 2024 16:14
Copy link
Member

@mcdurdin mcdurdin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LVGTM

…re-call-detects-invalid-store-in-kmcmplib-compiler

# Keyman Conventional Commit suggestions:
#
# - Link to a Sentry issue with git trailer:
#     Fixes: _MODULE_-_ID_
# - Give credit to co-authors:
#     Co-authored-by: _Name_ <_email_>
# - Use imperative, present tense ('attach' not 'attaches', 'attached' etc)
# - Don't include a period at the end of the title
# - Always include a blank line before trailers
# - More: https://github.com/keymanapp/keyman/wiki/Pull-Request-and-Commit-workflow-notes
@markcsinclair markcsinclair merged commit f5ddc4b into master Aug 26, 2024
6 checks passed
@markcsinclair markcsinclair deleted the fix/developer/12262-ensure-call-detects-invalid-store-in-kmcmplib-compiler branch August 26, 2024 13:17
@keyman-server
Copy link
Collaborator

Changes in this pull request will be available for download in Keyman version 18.0.98-alpha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

bug(developer): call() code does not detect invalid store in kmcmplib compiler
3 participants