Skip to content

Handle mach_vm* functions return to debug failures - #133

Merged
Jingyu Ma (mazong1123) merged 2 commits into
microsoft:mainfrom
lucianopa-msft:lucianopa/handle-err
Aug 7, 2026
Merged

Jingyu Ma (mazong1123) merged 2 commits into
microsoft:mainfrom
lucianopa-msft:lucianopa/handle-err

Conversation

@lucianopa-msft

Copy link
Copy Markdown
Member

This just handles a failure result in mach_vm function for MacOS where we've seen some cases where this may fail (still investigating) but not handling this failure would cause a segmentation fault so this would be more helpful for debug/report to panic on the source of failure than to ignore that it fails and then trying to access that memory in inject_asm_code -> ptr::copy_nonoverlapping.

@mazong1123 Jingyu Ma (mazong1123) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LKTM

@mazong1123
Jingyu Ma (mazong1123) merged commit cf1d047 into microsoft:main Aug 7, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants