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

memory leakage #37

Open
smutahoang opened this issue Oct 30, 2019 · 0 comments
Open

memory leakage #37

smutahoang opened this issue Oct 30, 2019 · 0 comments

Comments

@smutahoang
Copy link

if ((double)(k + 1) / neg_table_size > por)

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.

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

No branches or pull requests

1 participant