Skip to content

cipherName is corrupted in wxSQLite3Cipher::SetCipher() #109

@yzhgu

Description

@yzhgu

win10 + vs2019 + wxWidgets 3.2.21;
I run into a problem that wxSQLite3Cipher::SetCipher() is always return false. When I debug into this function, I found the const char* cipherName is corrupted. But if I first duplicate the wxString returned by GetCipherName(cipherType), then the result is fine. Did I do something wrong? My project character set is unicode.

corrupted cipherName:
corrupted
right cipherName:
fine

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions