Bug 261011 - Segmentation fault reading dirfile at non-existent future INDEX
Summary: Segmentation fault reading dirfile at non-existent future INDEX
Status: RESOLVED FIXED
Alias: None
Product: kst
Classification: Applications
Component: datasources (show other bugs)
Version: 2.0.3
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: 2.0.3
Assignee: kst
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-22 22:51 UTC by stevebenton
Modified: 2011-01-19 20:22 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description stevebenton 2010-12-22 22:51:17 UTC
Version:           2.0.3
OS:                Linux

Saved .kst file has vectors from dirfile with start="1294710" count="-1". Indexes in current dirfile (a symlink) only go to 85370. On trying to load, a segmentation fault occurs.

Editing to .kst file so that each datavector has start="-1" count="100" makes things work again.

Reproducible: Always

Steps to Reproduce:
Can reproduce using the "Change Data Sample Range" dialog: Select "Read to end" and set "Start" to outside the current dirfile INDEX range.

Actual Results:  
kst immediately dies to a segmentation fault

Expected Results:  
Best behaviour would be to detect problem and bring up dialog to select a valid data sample range (maybe after warning). It would also be okay for nothing to happen, and plots contain no data.

OS: Linux
Comment 1 Netterfield 2011-01-16 01:36:23 UTC
SVN commit 1214715 by netterfield:

BUG: 261011
Check number of frame limits before reading data.



 M  +5 -3      datavector.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1214715