LINE icon indicating copy to clipboard operation
LINE copied to clipboard

memory leakage

Open smutahoang opened this issue 5 years ago • 0 comments

https://github.com/tangjianpku/LINE/blob/5e32b41bfcec1269c434b383056ea205cf021e2d/linux/line.cpp#L256

when k == neg_table_size -1, it might be the case vid == num_vertices but por < 1 (it might be 0.99999 but not 1.0 due the machine epsilon), hence the next cur_sum computation is called which accesses the (num_vertices)-th elements of the vextex array -- which is out-of-range.

smutahoang avatar Oct 30 '19 13:10 smutahoang