help-libidn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

infinite loop bug in libidn (pr29_4)


From: Jon Nelson
Subject: infinite loop bug in libidn (pr29_4)
Date: Thu, 5 Jan 2012 17:30:15 -0600

On or around line 1260 of lib/pr29.c, in the pr29_4 function.

  for (i = 0; i < len; i++)
    if ((row = first_column (in[i])) > 0)
      for (j = i + 1; j < len; j++)
    if (combinationclass (in[j]))
      for (k = j + 1; k < len; j++)
        if (in_last_column_row (in[k], row))
          return PR29_PROBLEM;

The infinite loop occurs when the character is present in
combinationclass but the following character is *not* in
in_last_column_row.
I believe the "k" loop should be incrementing *k* not *j*.


-- 
Strange things are afoot at the Circle K.
Jon



reply via email to

[Prev in Thread] Current Thread [Next in Thread]