[Kst] [Bug 120823] Crash if attempt to read past end of dirfile.
George Staikos
staikos at kde.org
Fri Jan 27 01:39:08 CET 2006
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=120823
------- Additional Comments From staikos kde org 2006-01-27 01:39 -------
Around line 461 there is this:
if (new_nf <= 0) {
// Tried to read starting past the end.
new_f0 = 0;
new_nf = 1;
}
Is it being executed? If so, maybe it needs to be more robust. I think if
we have a read-from-past end case, we need to, at the top, bail out and set
the size to 0, filled with NAN. It's a nonsense case.
(and we should leave the code down lower as-is so we can catch errors)
More information about the Kst
mailing list