Project

General

Profile

Support #10354

WDateEdit\WDatePicker cast bug

Added by Poltavskiy Nick 4 months ago. Updated 3 months ago.

Status:
Feedback
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
05/16/2022
Due date:
% Done:

0%

Estimated time:

Description

If you trying to create custom delegate to MVC Table View, like in example - https://www.webtoolkit.eu/widgets/trees-tables/mvc-table-views (last example), with WDateEdit or WDatePicker element in createEditor method, all webapp crash with segfault.
And segfault happens only if you touch calendar element in WPopupWidget, if you use only WLineEdit, from WDateEdit or WDatePicker, everything is fine.
SO segfault happens at this file - /usr/src/debug/net-libs/wt-4.7.1/wt-4.7.1/src/web/WebController.C and at this point auto buf = std::unique_ptr(new char[len + 1]);
and len at this moment equals 2635

#1

Updated by Roel Standaert 3 months ago

  • Tracker changed from Bug to Support
  • Status changed from New to Feedback

Do you have a test that reproduces this issue? That particular line doesn't look like one that could cause a segmentation fault unless things have gone terribly wrong before that.

Also available in: Atom PDF