Skip to content

read_fasta_file_short_names crashes when chromosome name does not have spaces #38

Description

@guilhermesena1

read_fasta_file_short_names under smithlab_os.cpp uses the find_first_of function to call a substring of the chromosome name. When the name doesn't contain spaces it returns string::npos and it throws a runtime error because the end iterator is before the start iterator (which we add 1 because of the > character).

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions