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

Fusionado
MicheleC fusionados 1 commits de feat/tdewallet-access-R14-0-6 en r14.0.x hace 5 años
Propietario

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

Same as #15 but for R14.0.x series
MicheleC ha añadido esto al hito R14.0.6 release hace 5 años
Propietario

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.
Autor
Propietario

Great! I think we are ready to merge then

Great! I think we are ready to merge then
MicheleC cerró este pull request hace 5 años
MicheleC rama eliminada feat/tdewallet-access-R14-0-6 hace 5 años
El Pull Request se ha fusionado como 987768c54d.
Inicie sesión para unirse a esta conversación.
No hay revisores
Sin Milestone
No asignados
2 participantes
Notificaciones
Fecha de vencimiento

Sin fecha de vencimiento.

Dependencias

No se han establecido dependencias.

Referencia: TDE/tdelibs#16
Cargando…
Aún no existe contenido.