Project

General

Profile

Actions

Bug #1136

closed

member not initialized in WEnvironment

Added by Gaetano Mendola almost 13 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
High
Assignee:
Pieter Libin
Target version:
Start date:
01/17/2012
Due date:
% Done:

0%

Estimated time:

Description

On my test valgrind is complaing like this:

11662 Conditional jump or move depends on uninitialised value(s)

11662 at 0xCF031E8: Wt::WebSession::fixRelativeUrl(std::string const&) const (WebSession.C:466)

11662 by 0xCC40F8F: Wt::WApplication::resolveRelativeUrl(std::string const&) const (WApplication.C:645)

11662 by 0xCC417EE: Wt::WApplication::resourcesUrl() (WApplication.C:407)

11662 by 0xCC1904A: Wt::WAbstractItemView::initDragDrop() (WAbstractItemView.C:391)

11662 by 0xCC1B7A8: Wt::WAbstractItemView::configureModelDragDrop() (WAbstractItemView.C:596)

11662 by 0xCC1BD35: Wt::WAbstractItemView::setDragEnabled(bool) (WAbstractItemView.C:1110)

and indeed at WebSession.C:466 there is:

if (env_->hashInternalPaths()) ...

now if env_ is a WEnvironment inizialized without parameter happens that the default constructor doesn't inizialize any internal

member, this happens when the enviroment used is an instance of Wt::Test::WTestEnvironment (it inherit from WEnvironment)

Actions #1

Updated by Koen Deforche almost 13 years ago

  • Status changed from New to InProgress
  • Assignee set to Pieter Libin
  • Target version set to 3.2.1

Hey,

Thanks for catching this. The test environment should indeed initialize this to false.

Regards,

koen

Actions #2

Updated by Pieter Libin almost 13 years ago

  • Status changed from InProgress to Resolved
Actions #3

Updated by Koen Deforche over 12 years ago

  • Status changed from Resolved to Closed

Fixed in 3.2.1

Actions

Also available in: Atom PDF