Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Array bounds wrong for compiled database #1

Open
martinellison opened this issue Mar 3, 2015 · 0 comments
Open

Array bounds wrong for compiled database #1

martinellison opened this issue Mar 3, 2015 · 0 comments

Comments

@martinellison
Copy link

There are several arrays that are indexed out of range.
in database/db1.h:

        const char * character_index[6862][2];
        const char * utf8s_index[6862][2];
        const char * utf8c_index[6862][2];

in database/indexes.dat:
character_index[6862][0] = "@";
....
utf8s_index[6862][0] = "@";
....
utf8c_index[6931][0] = "6862";
utf8c_index[6931][1] = "粮";
utf8c_index[6932][0] = "@";

Also, a minor issue, adsointerface.cpp sets #define USE_MYSQL 1 even if the compiled database is being used. This does not seem to affect the code, though.

Note: this applies to the compiled database.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant