Project

Profile

Help

HostedRedmine.com has moved to the Planio platform. All logins and passwords remained the same. All users will be able to login and use Redmine just as before. Read more...

Bug #859139

Qt: Temporary QByteArrays often used after their lifetime has ended

Added by Marko Lindqvist over 1 year ago. Updated 9 months ago.

Status:
Closed
Priority:
Normal
Category:
gui-qt
Sprint/Milestone:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

In Bug #858212 I wrote:

"...the problem is in the lifetime of the temporary QByteArray when using construct like 'char *buf = str.toLocal8Bit().data()', the bad news is that Qt-client and ruledit code has lots of such usage.

grep -r "data()" client/qui-qt tools/ruledit"


Related issues

Related to Freeciv - Bug #858212: Qt heap-use-after-free entering Pick Nation screen (2.6.1+)Closed

<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>
Related to Freeciv - Task #851229: S3_0 alpha4Closed2020-04-25

<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>

History

#1 Updated by Jacob Nevins over 1 year ago

  • Related to Bug #858212: Qt heap-use-after-free entering Pick Nation screen (2.6.1+) added

#2 Updated by Marko Lindqvist over 1 year ago

Master patch attached. Will push this before it suffers from bitrot, even though ports to older branches are not ready to be pushed at the same time.

#5 Updated by Marko Lindqvist over 1 year ago

#6 Updated by Marko Lindqvist over 1 year ago

  • Status changed from Resolved to Closed
  • Assignee set to Marko Lindqvist

#7 Updated by Marko Lindqvist 9 months ago

  • Sprint/Milestone changed from 2.6.3 to 2.6.2.1

Also available in: Atom PDF