Skip to content

Improve validity checks when loading BIOM file #84

Description

@sfiligoi

When loading a BIOM file, we do not always check that our assumptions are correct.

An example is
load_indptr
where we blindly assume that all elements are uint32_t.

uint32_t *dataout = (uint32_t*)malloc(sizeof(uint32_t) * dims[0]);

This may result in a memory corruption if the file is malformed, and the type is not correct.

Note that we already have some limited error handling, but we should extend it.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions