[Koha-bugs] [Bug 22429] Infinite loop in patron card printing

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Mar 5 01:34:01 CET 2019


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22429

--- Comment #10 from David Cook <dcook at prosentient.com.au> ---
(In reply to Christian Stelzenmüller from comment #9)
> > "Aha... it's the parentheses which are the problem. They're being interpreted as 
> > regex metacharacters and not literal values!" 
> 
> We noticed that there seems to be an infinite loop if the template has some
> or all entries with "0" in it (like in default when creating a new
> template). Could this be the same cause?

I don't think it would be the exact same cause, but probably related. My guess
would be that the other regular expression used for "trimming" the long line
might have problems with the 0s. I could probably look at that later today. 

Infinite loops are very easy to encounter with this code because it only breaks
the loops for some very specific positive conditions. There probably should be
some kind of sanity check to prevent infinite loops, or a more mathematically
precise loop...

I have an urgent matter at hand but I'll keep this in mind to look at later
today...

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list