Issue 2303 - Program crashes after entering large number at Chart Data
Summary: Program crashes after entering large number at Chart Data
Status: CLOSED FIXED
Alias: None
Product: General
Classification: Code
Component: chart (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: PC Windows 98
: P2 Trivial (vote)
Target Milestone: ---
Assignee: bjoern.milcke
QA Contact: issues@graphics
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-11-28 03:03 UTC by Unknown
Modified: 2013-02-24 21:19 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Unknown 2001-11-28 03:03:47 UTC
When the number that is more than the maximum double value is entered
at Input field on Chart Data in Insert Chart function, the program crashes.

Replication Steps:
1. Invoke Presentation of OpenOffice.org 638
2. Insert -> Chart
3. Right click on the chart -> Chart Data
4. Enter 1.797693134862320E+308 on Input Field
5. Press Assign button (Right on the Input Field)
6. No error message shows up and the program crashes.
Comment 1 bettina.haberer 2001-11-28 11:28:53 UTC
This is a Chart-issue, so the component has been changed to chart. 
Issue reassigned to Oliver.
Comment 2 oc 2001-12-03 12:47:21 UTC
Reproducible, one for BM
Comment 3 bjoern.milcke 2001-12-05 11:25:37 UTC
I cannot reproduce a crash - I have a loop (maybe this results in a
crash when waiting for hours ;-)

This large number is internally already interpreted as infinity. There
is a while loop which in this case does not terminate.  I fixed this
such that the loop is skipped if there are infinite values.  As a
result the chart will be empty.  But as calculation with values which
are at the edge of double are not very reliable I think this should
work. I mean this was a tet for robustness anyway, wasn't it?

(Fix is in file: sch/source/core/chaxis.cxx 1.23)
Comment 4 kla 2002-11-28 14:49:48 UTC
closed