Project

General

Profile

Actions

Bug #660

closed

Read after delete in WAbstractItemView

Added by Anonymous about 13 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
Start date:
12/30/2010
Due date:
% Done:

0%

Estimated time:

Description

Valgrind snippit:

Invalid read of size 8

at 0x5621199: Wt::WAbstractItemView::saveEditedValue (WAbstractItemView.C:1311)

by 0x562134A: Wt::WAbstractItemView::closeEditor (WAbstractItemView.C:1157)

Address 0x11e57db8 is 56 bytes inside a block of size 80 free'd

by 0x562132E: Wt::WAbstractItemView::closeEditor (???)

Solution:

The erase of an item in "editedItems_" destructs "editor". 'saveEditedValue' must then be called before erasure.

Attached: patch


Files

Actions #1

Updated by Koen Deforche about 13 years ago

  • Status changed from New to InProgress

Hey Thomas,

We had a patch recently which actually is the opposite of your patch. I believe the right solution is to change:

  Editor& editor = i->second;

to:

  Editor editor = i->second;

That should solve the error for you ?

Regards,

koen

Actions #2

Updated by Koen Deforche about 13 years ago

  • Status changed from InProgress to Resolved
  • Assignee set to Koen Deforche

Changed as proposed in git.

Actions #3

Updated by Koen Deforche about 13 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF