Jump to content
Maintenance ×
  • Create New...
  • 0

Guild creatin error



Hey i get following error after creation of a new Guild:


EscapeString: FATAL ERROR!! not enough buffer size (dstSize 25 srcSize 13 src: Teste)


The code looks like :


    static char __escape_name[GUILD_NAME_MAX_LEN * 2 + 1];
    DBManager::instance().EscapeString(__escape_name, sizeof(__escape_name), static_cast<const char *>(gcp.name), sizeof(gcp.name));
    std::auto_ptr<SQLMsg> pmsg(DBManager::instance().DirectQuery("SELECT COUNT(*) FROM guild%s WHERE name = '%s'", get_table_postfix(), __escape_name));
    if (pmsg->Get()->uiNumRows > 0)


Does anyone got a idea how to fix this error ?

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0
  • Premium

If you use that fix for guild sql inject you have to remove it, it already have    if (!check_name(gcp.name)) that doesn't allow more than A-Z. So the fix isn't necesary. If you are worried about that sql inject, it is just from messenger.

  • Love 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.

  • Activity

    1. 0

      erorrs after update granny to 2.9

    2. 0

      Navicat Premium 16.1.1 x64

    3. 5

      problem Dargon Soul Changre Attribute

    4. 5

      problem Dargon Soul Changre Attribute

    5. 41

      Global Chat

    6. 5

      problem Dargon Soul Changre Attribute

    7. 2

      Startup Loading Window Library

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.