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: pointer warning in client.cpp #84

Merged
merged 5 commits into from
Jan 12, 2025
Merged

fix: pointer warning in client.cpp #84

merged 5 commits into from
Jan 12, 2025

Conversation

kevmo314
Copy link
Owner

@kevmo314 kevmo314 commented Jan 11, 2025

Fix the warning about pointer arithmetic in client.cpp.

  • Change the pointer arithmetic in the segfault function to use uintptr_t.
  • Update the comparison faulting_address < (ptr + sz) to (uintptr_t)faulting_address < ((uintptr_t)ptr + sz).

For more details, open the Copilot Workspace session.

Fix the warning about pointer arithmetic in `client.cpp`.

* Change the pointer arithmetic in the `segfault` function to use `uintptr_t`.
* Update the comparison `faulting_address < (ptr + sz)` to `(uintptr_t)faulting_address < ((uintptr_t)ptr + sz)`.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/kevmo314/scuda?shareId=XXXX-XXXX-XXXX-XXXX).
@kevmo314 kevmo314 enabled auto-merge (squash) January 11, 2025 16:28
@kevmo314 kevmo314 merged commit 58cff4c into main Jan 12, 2025
2 checks passed
@kevmo314 kevmo314 deleted the fix-warning branch January 12, 2025 17:09
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.

1 participant