[liblouis-liblouisxml] Re: Endless loop in compileTranslationTable.c

  • From: "John J. Boyer" <johnjboyer@xxxxxxxxxxxxx>
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Tue, 16 Nov 2010 05:01:21 -0600

I'll check this out. Should have a fix in svn soon.

John

On Tue, Nov 16, 2010 at 11:47:43AM +0100, Christian Egli wrote:
> Hi all
> 
> I'm trying to add the Dutch tables contributed by Bert Frees. However,
> I'm running into an endless loop when trying to check them. I reduced
> the table in question to a minimal example which exposes the bug. If you
> run lou_checktable on the attached table compileTranslationTable will
> loop endlessly in the function makeRuleChain (line 1140). It appears
> that the data structure is circular, i.e. currentRule->charsnext points
> to itself.
> 
> Thanks
> Christian
> 

Content-Description: Minimal example table exposing loop
> uplow       \x0041\x0061  1,1                 Aa                  LATIN 
> CAPITAL LETTER A - LATIN SMALL LETTER A
> uplow       \x0042\x0062  12,12               Bb                  LATIN 
> CAPITAL LETTER B - LATIN SMALL LETTER B
> uplow       \x0043\x0063  14,14               Cc                  LATIN 
> CAPITAL LETTER C - LATIN SMALL LETTER C
> uplow       \x0044\x0064  145,145             Dd                  LATIN 
> CAPITAL LETTER D - LATIN SMALL LETTER D
> uplow       \x0045\x0065  15,15               Ee                  LATIN 
> CAPITAL LETTER E - LATIN SMALL LETTER E
> uplow       \x0046\x0066  124,124             Ff                  LATIN 
> CAPITAL LETTER F - LATIN SMALL LETTER F
> uplow       \x0047\x0067  1245,1245           Gg                  LATIN 
> CAPITAL LETTER G - LATIN SMALL LETTER G
> uplow       \x0048\x0068  125,125             Hh                  LATIN 
> CAPITAL LETTER H - LATIN SMALL LETTER H
> uplow       \x0049\x0069  24,24               Ii                  LATIN 
> CAPITAL LETTER I - LATIN SMALL LETTER I
> uplow       \x004A\x006A  245,245             Jj                  LATIN 
> CAPITAL LETTER J - LATIN SMALL LETTER J
> uplow       \x004C\x006C  123,123             Ll                  LATIN 
> CAPITAL LETTER L - LATIN SMALL LETTER L
> uplow       \x0052\x0072  1235,1235           Rr                  LATIN 
> CAPITAL LETTER R - LATIN SMALL LETTER R
> uplow       \x0054\x0074  2345,2345           Tt                  LATIN 
> CAPITAL LETTER T - LATIN SMALL LETTER T
> 
> class    digitletter           abcdefghij
> context  $d[]%digitletter      @6
> context  $d"."[]%digitletter   @6
> 
> context  $U2[]$u                              @6
> context  $U[]$u                               @6
> 

> 
> -- 
> Christian Egli
> Swiss Library for the Blind, Visually Impaired and Print Disabled
> Grubenstrasse 12, CH-8045 Zürich, Switzerland
> 
> 
> -----
> Neu fuer Seh- und Lesebehinderte: Zeitschriften online hoeren
> und herunterladen. http://www.sbs.ch/zeitschriftendownload


-- 
My websites:
GodTouches Digital Ministry, Inc. http://www.godtouches.org
Abilitiessoft, Inc. http://www.abilitiessoft.com
Location: Madison, WI, USA

For a description of the software, to download it and links to
project pages go to http://www.abilitiessoft.com

Other related posts: