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

Prevent dereferencing of a null pointer #59

Merged
merged 1 commit into from
Nov 10, 2021

Conversation

ahoenselaar
Copy link
Contributor

In lines 2078 and 2085, intersect_line_with_segment is intentionally called with 0 as the fifth argument.

In lines 2078 and 2085, `intersect_line_with_segment` is intentionally called with `0` as the fifth argument.
@stevengj
Copy link
Collaborator

Good catch; it looks like we pass NULL here:

int status = intersect_line_with_segment(q0, startPoint, endPoint, xAxis, 0);

@stevengj stevengj merged commit 76deb2a into NanoComp:master Nov 10, 2021
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