if it's
static uint32
makeCompoundFlags(IspellDict *Conf, int affix)
{
        uint32          flag = 0;
        char       *str = Conf->AffixData[affix];

        while (str && *str)
        {
                flag |= Conf->flagval[(unsigned int) *str];
                str++;
        }

        return (flag & FF_DICTFLAGMASK);
}


Than I have quite few notes about that function:
- affix is not checked on entry, and should be unsigned,
- for sake of safety uint32_t should be used instead of unsigned int,
in the cast
- there should be some safety limit for lenght of str,

-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

Reply via email to