Support #10354
openWDateEdit\WDatePicker cast bug
0%
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
Updated by Roel Standaert almost 3 years 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.