| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Sorry, something went wrong.
|
|
Sorry, something went wrong.
|
Sorry, something went wrong.
There was a problem hiding this comment.
Fixes a stack buffer overflow crash in the macOS mach_smi collector by passing the correct element count (Mach _COUNT macros, expressed in mach_msg_type_number_t units of 4 bytes) to host_statistics64/host_statistics, instead of sizeof(...) which overstates the buffer by 4x and triggers the stack canary on return.
Changes:
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Sorry, something went wrong.
(cherry picked from commit 64ceb9c)
| Back | FazBrowse Home | New Git URL |
Summary
Fix stack buffer overflow in macOS mach_smi collector
Fixes #22552
Test Plan
Additional Information
For users: How does this change affect me?Summary by cubic
Fixed a stack buffer overflow in the macOS mach_smi collector by passing the correct element count to the VM stats APIs. This prevents crashes and memory corruption during RAM/swap/page-fault collection.
Written for commit 96e162c. Summary will update on new commits. Review in cubic