Skip to content

memory leakage #37

@smutahoang

Description

@smutahoang

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions