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 code scanning alert no. 686: Redundant null check due to previous dereference #129

Closed
wants to merge 1 commit into from

Conversation

cooljeanius
Copy link
Owner

Fixes https://github.com/cooljeanius/apple-gdb-1824/security/code-scanning/686

To fix the problem, we should remove the redundant null check on start on line 506. This will clean up the code and avoid unnecessary checks, as the dereference of lexptr ensures that start cannot be NULL.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

… dereference

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@cooljeanius
Copy link
Owner Author

trying to fix this another way

@cooljeanius cooljeanius closed this Oct 4, 2024
@cooljeanius cooljeanius deleted the autofix/alert-686-0ef6e1c56e branch October 4, 2024 17:50
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