get_adjacencies doesn't properly error out

Issue #26 resolved
Nico Schlömer created an issue

I just noticed that when feeding get_adjacencies with random data, e.g.,

moab::Range out;
moab::EntityHandle tmp = 123234232423434;
rval = mb->get_adjacencies(
    &tmp, 1,
    1,
    true,
    out,
    moab::Interface::UNION
    );
assert(rval == moab::MB_SUCCESS);

the method will not report an error but instead fill out with invalid data and return MB_SUCCESS.

Comments (1)

  1. Nico Schlömer reporter

    I take it back.

    What I hadn't realized that is that, as output, something like 5764607523034237829 is actually a valid identifier.

  2. Log in to comment