Fix to access old TDE wallet with special characters (R14.0.x series) #16

Unito
MicheleC ha unito 1 commit da feat/tdewallet-access-R14-0-6 a r14.0.x 5 anni fa
MicheleC 5 anni fa ha commentato
Proprietario

Same as #15 but for R14.0.x series

Same as #15 but for R14.0.x series
MicheleC aggiunta alle pietre miliari R14.0.6 release 5 anni fa
SlavekB 5 anni fa ha commentato
Proprietario

Problem with previous patch version identified and resolved. This was a similar problem as we recently dealt with in KPasswordEdit::password().

Calling TQString::fromLocal8Bit( "..." ) creates a temporary TQString object, but the subsequent use of const char * obtained by the ascii() method then refers to a portion of memory that has already been released and used for another purpose.

With a modified version of the patch, opening a wallet with a password with special characters works also in R14.0.6.

Problem with previous patch version identified and resolved. This was a similar problem as we recently dealt with in `KPasswordEdit::password()`. Calling `TQString::fromLocal8Bit( "..." )` creates a temporary TQString object, but the subsequent use of `const char *` obtained by the `ascii()` method then refers to a portion of memory that has already been released and used for another purpose. With a modified version of the patch, opening a wallet with a password with special characters works also in R14.0.6.
MicheleC 5 anni fa ha commentato
Autore
Proprietario

Great! I think we are ready to merge then

Great! I think we are ready to merge then
MicheleC chiusa questa pull request 5 anni fa
MicheleC branch feat/tdewallet-access-R14-0-6 eliminato 5 anni fa
La pull request è stata unita come 987768c54d.
Effettua l'accesso per partecipare alla conversazione.
Nessun revisore
Nessuna milestone
Nessuna assegnatario
2 Partecipanti
Notifiche
Data di scadenza

Nessuna data di scadenza impostata.

Dipendenze

Nessuna dipendenza impostata.

Riferimento: TDE/tdelibs#16
Caricamento…
Non ci sono ancora contenuti.