Actions
Bug #3980
closedUninitialized variable in WAxis.C
Start date:
04/14/2015
Due date:
% Done:
0%
Estimated time:
Description
Valgrind reports the use of an uninitialized variable with the stand-alone charts example in wt 3.3.4, built on Debian 7.8 (wheezy). The unitialized variable appears to be the dateTimeRenderInterval member of WAxis::Segment. The relevant valgrind output (lightly edited):
Conditional jump or move depends on uninitialised value(s)
at: Wt::Chart::WAxis::defaultDateTimeFormat(Wt::Chart::WAxis::Segment const&) const (WAxis.C:1135)
by: Wt::Chart::WAxis::calcAutoNumLabels(Wt::Orientation, Wt::Chart::WAxis::Segment const&) const (WAxis.C:1203)
by: Wt::Chart::WAxis::prepareRender(Wt::Orientation, double) const (WAxis.C:444)
by: Wt::Chart::WCartesianChart::prepareAxes() const (WCartesianChart.C:1581)
by: Wt::Chart::WCartesianChart::initLayout(Wt::WRectF const&, Wt::WPaintDevice*) const (WCartesianChart.C:1434)
by: Wt::Chart::WCartesianChart::render(Wt::WPainter&, Wt::WRectF const&) const (WCartesianChart.C:1396)
by: Wt::Chart::WCartesianChart::paint(Wt::WPainter&, Wt::WRectF const&) const (WCartesianChart.C:1381)
by: Wt::Chart::WCartesianChart::paintEvent(Wt::WPaintDevice*) (WCartesianChart.C:1388)
by: Wt::WPaintedWidget::createDomElement(Wt::WApplication*) (WPaintedWidget.C:335)
by: Wt::WWebWidget::createActualElement(Wt::WWidget*, Wt::WApplication*) (WWebWidget.C:2183)
by: Wt::WWidget::createSDomElement(Wt::WApplication*) (WWidget.C:365)
by: Wt::WContainerWidget::createDomChildren(Wt::DomElement&, Wt::WApplication*) (WContainerWidget.C:730)
by: Wt::WContainerWidget::createDomElement(Wt::WApplication*, bool) (WContainerWidget.C:663)
by: Wt::WContainerWidget::createDomElement(Wt::WApplication*) (WContainerWidget.C:651)
by: Wt::WWebWidget::createActualElement(Wt::WWidget*, Wt::WApplication*) (WWebWidget.C:2183)
by: Wt::WWidget::createSDomElement(Wt::WApplication*) (WWidget.C:365)
by: Wt::WContainerWidget::createDomChildren(Wt::DomElement&, Wt::WApplication*) (WContainerWidget.C:730)
by: Wt::WContainerWidget::createDomElement(Wt::WApplication*, bool) (WContainerWidget.C:663)
by: Wt::WContainerWidget::createDomElement(Wt::WApplication*) (WContainerWidget.C:651)
by: Wt::WWebWidget::createActualElement(Wt::WWidget*, Wt::WApplication*) (WWebWidget.C:2183)
An attached patch initializes the member to 0, silencing valgrind, but I'm not sure that this is the intended value.
Files
Updated by Koen Deforche over 9 years ago
- Status changed from New to InProgress
- Assignee set to Benoit Daccache
Updated by Benoit Daccache over 9 years ago
- Status changed from InProgress to Resolved
Updated by Koen Deforche about 9 years ago
- Status changed from Resolved to Closed
Actions