Skip to content

Incorrect handling of paths when being invoked outside of root directory #1

@Glorou

Description

@Glorou

There is an oversight in fbx_importer.cpp such that

    std::string str;
    std::string fullSql = "";
    while (std::getline(file, str))
    {
        fullSql += str + "\n";
    }
    file.close();

will not check for failure conditions such as the file not existing, and the while loop will be ignored, meaning a valid yet empty string is passed on to the database creation function below which doesn't flag an issue with being sent an empty string, its only when trying to load a non-existent table does it catch the error. You can confirm by testing in a similar manner to the linked screenshot. Passing an empty string to SQLite will not report an error so SQLITE_OK will be true.

Image

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