kaliveda-dev team mailing list archive
-
kaliveda-dev team
-
Mailing list archive
-
Message #00086
[Bug 571669] Re: segmentation violation in KVString::Next
** Changed in: kaliveda/1.8
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of KaliVeda
Development Team, which is subscribed to KaliVeda.
https://bugs.launchpad.net/bugs/571669
Title:
segmentation violation in KVString::Next
Status in KaliVeda data analysis framework:
Fix Released
Status in KaliVeda 1.7 series:
Fix Released
Status in KaliVeda 1.8 series:
Fix Released
Bug description:
version tested: no-det-in-root-file, but must be same in trunk and 1.7
series
the following code produces a segmentation violation:
root [0] KVString dets="/"
root [1] dets.Begin("/")
root [2] dets.End()
(Bool_t)0
root [3] dets.Next()
*** Break *** segmentation violation
the expected behaviour (in case of a string containing just a delimiter token and nothing else)
would have been:
root [0] KVString dets="/"
root [1] dets.Begin("/")
root [2] dets.End()
(Bool_t)1
i.e. End() returns kTRUE straight away to say "there is nothing interesting in the string"
the same error occurs with dets = "//"