Skip to content

0 size allocation #27

Description

@thovide

Hello,

in cell.cpp or cell3d.cpp (depending on the version), the instruction in bold leads to a call to new int[0] for the first iteration...

void voronoicell_neighbor_3d::memory_setup() {
int i;
mne=new int*[current_vertex_order];
ne=new int*[current_vertices];
for(i=0;i<3;i++) mne[i]=new int[init_n_vertices*i];
mne[3]=new int[init_3_vertices3];
for(i=4;i<current_vertex_order;i++) mne[i]=new int[init_n_vertices
i];
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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