NanoComp / libctl

Guile-based library implementing flexible control files for scientific simulations
GNU General Public License v2.0
18 stars 23 forks source link

Prevent dereferencing of a null pointer #59

Closed ahoenselaar closed 2 years ago

ahoenselaar commented 2 years ago

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

stevengj commented 2 years ago

Good catch; it looks like we pass NULL here: https://github.com/NanoComp/libctl/blob/2636a5958c248d7dfdf39242f2991c694e3b4798/utils/geom.c#L2085