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

已合併
MicheleC 5 年之前 將 1 次代碼提交從 feat/tdewallet-access-R14-0-6 合併至 r14.0.x
所有者

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

Same as #15 but for R14.0.x series
MicheleC 新增至R14.0.6 release 里程碑 5 年之前
所有者

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.
發佈者
所有者

Great! I think we are ready to merge then

Great! I think we are ready to merge then
MicheleC closed this pull request 5 年之前
MicheleC 刪除分支 feat/tdewallet-access-R14-0-6 5 年之前
The pull request has been merged as 987768c54d.
登入 才能加入這對話。
No reviewers
未選擇里程碑
No Assignees
2 參與者
訊息
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: TDE/tdelibs#16
Loading…
尚未有任何內容