Commit fa741cd4 authored by Keith Packard's avatar Keith Packard
Browse files

rehash increment could be zero, causing rehash infinite loop.

Bump the rehash value by one so that it is always positive.
parent 9b74b78f
......@@ -206,7 +206,7 @@ insert (FcGlyphName *gn, FcGlyphName **table, FcChar32 h)
i = (int) (h % hash);
while (table[i])
if (!r) r = (int) (h % rehash);
if (!r) r = (int) (h % rehash + 1);
i += r;
if (i >= hash)
i -= hash;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment