Hi,

https://bugs.launchpad.net/ubuntu/+source/cryptonit/+bug/541996
> Just tried on i686 lucid box and cryptonit starts OK.
> So I believe the bug is linked to x86_64 architecture.

I confirmed. It does not occurred in i386, but amd64 does.

src/ConfigDatabase.cpp

ConfigDatabase::ConfigDatabase(const std::string uri)
{
    current_error_line = 0;
    current_conf = NULL;

    // Strip the "config://" part if presents.
    std::string params( uri );
    unsigned int i = params.find("config://");
    if( i != std::string::npos)
        params.erase(i, strlen("config://") ); <--- *** crash ***

    current_filename = params;
}

ConfigDatabase::ConfigDatabase is called by User::saveToFile in src/User.cpp.
Is is passed arg "${HOME}/.cryptonit/default/Preferences.conf".
It does not have "config://", so it does not work properly.
But I apologize that I do not know how to fix.  I hope it is for your help.
-- 
Regards,
        dai

GPG Fingerprint = 0B29 D88E 42E6 B765 B8D8 EA50 7839 619D D439 668E

Attachment: signature.asc
Description: Digital signature

Reply via email to