Skip to content

Calling getExtension with empty string results in exception #363

@Destranix

Description

@Destranix

When calling glbinding::aux::Meta::getExtension(const std::string & extension) with an empty string an exception is thrown as the function attempts to access the string at a specific index unchecked when trying to skip the prefix.

See:

const auto index = alphabeticalGroupIndex(glextension, 3);

auto index = static_cast<size_t>(identifier[prefixLength]); // ignore prefix ('GL_' or 'gl')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions