Project

General

Profile

Actions

Bug #4828

closed

WCartesianChart loops allocating memory in createPensForAxis when provided bad axis minimum

Added by Bruce Toll about 8 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Roel Standaert
Target version:
Start date:
03/26/2016
Due date:
% Done:

0%

Estimated time:

Description

With github Wt 3.3.5-23-gf6a7ef8, setting an axis minimum of 0.0 on a WCartesianChart LogScale axis will result in a loop (in createPensForAxis) that allocates memory until terminated by a "Wt: fatal error: std::bad_alloc". Of course, an axis minimum of 0.0 doesn't make sense on a LogScale axis, so this is a library usage error, but one that could potentially occur with insufficient checking of end-user input.

A sample program is attached that demonstrates the issue. [NOTE: Be sure to set a reasonable virtual memory limit before running it.]

The sample program renders a blank chart without looping under Wt 3.3.5.


Files

Actions #1

Updated by Koen Deforche about 8 years ago

  • Status changed from New to InProgress
  • Assignee set to Roel Standaert
Actions #2

Updated by Roel Standaert about 8 years ago

  • Status changed from InProgress to Implemented @Emweb
Actions #3

Updated by Koen Deforche almost 8 years ago

  • Status changed from Implemented @Emweb to Resolved
Actions #4

Updated by Koen Deforche almost 8 years ago

  • Status changed from Resolved to Closed
  • Target version set to 3.3.6
Actions

Also available in: Atom PDF