[liblouis-liblouisxml] Translating "---.com" with UEBC-g2.ctb causes infinite loop

  • From: James Teh <jamie@xxxxxxxxxxxx>
  • To: liblouis/liblouisxml mailing list <liblouis-liblouisxml@xxxxxxxxxxxxx>
  • Date: Mon, 01 Sep 2014 20:51:47 +1000

Hi all,

I originally tried to report this via the website, but pressing on the Edit button after entering the bug title opens a download dialog in Firefox. (Misconfigured CGI gateway or wrong mime type perhaps?)

Tested in liblouis 2.5.4 and current master (b483d7ae).

Str:
1. Call lou_translateString with UEBC-g2.ctb and the string "---.com".
Result: Freeze, probably an infinite loop.

The original string was a very long Youtube URL, but I distilled it as far as I could. I realise the UEBC-g2.ctb table is probably deprecated by now, but liblouis should still never end up in loops. I haven't done any debugging yet to see where/why this is freezing. I'll try to take a look at it when I can, but that could be a while.

Jamie

--
James Teh
Executive Director, NV Access Limited
Ph +61 7 3149 3306
www.nvaccess.org
Facebook: http://www.facebook.com/NVAccess
Twitter: @NVAccess
SIP: jamie@xxxxxxxxxxxx
For a description of the software, to download it and links to
project pages go to http://www.abilitiessoft.com

Other related posts: