Actions
Bug #4828
closedWCartesianChart loops allocating memory in createPensForAxis when provided bad axis minimum
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
Updated by Koen Deforche over 8 years ago
- Status changed from New to InProgress
- Assignee set to Roel Standaert
Updated by Roel Standaert over 8 years ago
- Status changed from InProgress to Implemented @Emweb
Updated by Koen Deforche over 8 years ago
- Status changed from Implemented @Emweb to Resolved
Updated by Koen Deforche over 8 years ago
- Status changed from Resolved to Closed
- Target version set to 3.3.6
Actions