Triply-Dev / YASGUI.YASQE-deprecated

Deprecated, see https://github.com/TriplyDB/Yasgui for the Yasgui monorepo
MIT License
73 stars 36 forks source link

Avoid infinite loops when the line is incorrect #141

Closed bjonnh closed 5 years ago

bjonnh commented 5 years ago

This seems to solves #140 however we need clean tests for that function, it is not clear why it is written that way and what kind of cases it is trying to solve. Having a non conditional loop requires that we make absolutely sure that it can exit the loop.

Maybe in the mean time we need to add a counter that is initialized with the length of the line and make it spit a warning if it gets there. At least that would not make it crash and we would have debug information on why it crashed.

LaurensRietveld commented 5 years ago

Hi @bjonnh , thanks for the fix. Working on a new version that comes with better unit testing, so that should be covered as well