Skip to content

Prevent dereferencing of a null pointer#59

Merged
stevengj merged 1 commit intoNanoComp:masterfrom
ahoenselaar:patch-2
Nov 10, 2021
Merged

Prevent dereferencing of a null pointer#59
stevengj merged 1 commit intoNanoComp:masterfrom
ahoenselaar:patch-2

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