Bug 261011

Summary: Segmentation fault reading dirfile at non-existent future INDEX
Product: [Applications] kst Reporter: stevebenton
Component: datasourcesAssignee: kst
Status: RESOLVED FIXED    
Severity: crash CC: syntheticpp
Priority: NOR    
Version: 2.0.3   
Target Milestone: 2.0.3   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

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