Project

General

Profile

Actions

Bug #4828

closed
BT RS

WCartesianChart loops allocating memory in createPensForAxis when provided bad axis minimum

Bug #4828: WCartesianChart loops allocating memory in createPensForAxis when provided bad axis minimum

Added by Bruce Toll over 10 years ago. Updated about 10 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

KD Updated by Koen Deforche over 10 years ago Actions #1

  • Status changed from New to InProgress
  • Assignee set to Roel Standaert

RS Updated by Roel Standaert over 10 years ago Actions #2

  • Status changed from InProgress to Implemented @Emweb

KD Updated by Koen Deforche over 10 years ago Actions #3

  • Status changed from Implemented @Emweb to Resolved

KD Updated by Koen Deforche about 10 years ago Actions #4

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

Also available in: PDF Atom